Subject: Re: CVS commit: src
To: None <tech-userlevel@netbsd.org>
From: Pavel Cahyna <pavel@netbsd.org>
List: tech-userlevel
Date: 09/01/2006 15:30:31
--B4IIlcmfBL/1gGOG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Fri, Sep 01, 2006 at 01:42:22PM +0200, Hubert Feyrer wrote:
> On Fri, 1 Sep 2006, Pavel Cahyna wrote:
> >> src/distrib/sets/lists/etc: mi
> >> src/etc/skel: dot.profile
> >>Added Files:
> >> src/etc/skel: dot.shrc
> >>
> >>Log Message:
> >>Sync behaviour of sh and ksh dotfiles for new users with those of root.
> >>Addresses PR 32215 by Wouter Schoot
> >
> >Thanks. Would it make sense to have a system-wide file (/etc/shrc) that is
> >included by .shrc ?
>
> That would be a seperate change. Given that there's quite some overlap between
> /root/.* and /etc/skel/.* that may make sense. Feel free to pick this up.
Like this?
--B4IIlcmfBL/1gGOG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="shrc.diff"
Index: root/dot.shrc
===================================================================
RCS file: /cvsroot/src/etc/root/dot.shrc,v
retrieving revision 1.6
diff -u -r1.6 dot.shrc
--- root/dot.shrc 1 Apr 2001 01:32:10 -0000 1.6
+++ root/dot.shrc 1 Sep 2006 13:25:07 -0000
@@ -1,10 +1,10 @@
# $NetBSD: dot.shrc,v 1.6 2001/04/01 01:32:10 toddpw Exp $
+. /etc/shrc
+
hup(){ (read pid; kill -HUP $pid) </var/run/$1.pid; }
-ll(){ ls -l ${1+"$@"}; }
case "$-" in *i*)
- PS1="${HOST%%.*}$PS1"
- set -o emacs
+ # interactive mode settings go here
;;
esac
Index: skel/dot.shrc
===================================================================
RCS file: /cvsroot/src/etc/skel/dot.shrc,v
retrieving revision 1.1
diff -u -r1.1 dot.shrc
--- skel/dot.shrc 31 Aug 2006 22:49:55 -0000 1.1
+++ skel/dot.shrc 1 Sep 2006 13:25:07 -0000
@@ -1,9 +1,8 @@
# $NetBSD: dot.shrc,v 1.1 2006/08/31 22:49:55 hubertf Exp $
-ll(){ ls -l ${1+"$@"}; }
+. /etc/shrc
case "$-" in *i*)
- PS1="${HOST%%.*}$PS1"
- set -o emacs
+ # interactive mode settings go here
;;
esac
--B4IIlcmfBL/1gGOG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=shrc
ll(){ ls -l ${1+"$@"}; }
case "$-" in *i*)
PS1="${HOST%%.*}$PS1"
set -o emacs
;;
esac
--B4IIlcmfBL/1gGOG--