Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/root Also make hup work in single user; revert dot.cshrc...



details:   https://anonhg.NetBSD.org/src/rev/c66ba6b1bfc9
branches:  trunk
changeset: 504408:c66ba6b1bfc9
user:      tv <tv%NetBSD.org@localhost>
date:      Thu Mar 01 22:45:49 2001 +0000

description:
Also make hup work in single user; revert dot.cshrc to atatat's version,
and make equivalent for dot.shrc.

diffstat:

 etc/root/dot.cshrc |  4 ++--
 etc/root/dot.shrc  |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 5e2cca1de2d6 -r c66ba6b1bfc9 etc/root/dot.cshrc
--- a/etc/root/dot.cshrc        Thu Mar 01 22:35:52 2001 +0000
+++ b/etc/root/dot.cshrc        Thu Mar 01 22:45:49 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: dot.cshrc,v 1.13 2001/03/01 22:30:41 tv Exp $
+#      $NetBSD: dot.cshrc,v 1.14 2001/03/01 22:45:49 tv Exp $
 
 set history=1000
 set path=(/sbin /usr/sbin /bin /usr/bin /usr/pkg/sbin /usr/pkg/bin /usr/X11R6/bin /usr/local/sbin /usr/local/bin)
@@ -9,7 +9,7 @@
 setenv BLOCKSIZE 1k
 
 alias  h       history
-alias  hup     'kill -HUP `head -1 /var/run/\!$.pid`'
+alias  hup     '( set pid=$< ; kill -HUP $pid ) < /var/run/\!$.pid'
 alias  j       jobs -l
 alias  ll      ls -l
 
diff -r 5e2cca1de2d6 -r c66ba6b1bfc9 etc/root/dot.shrc
--- a/etc/root/dot.shrc Thu Mar 01 22:35:52 2001 +0000
+++ b/etc/root/dot.shrc Thu Mar 01 22:45:49 2001 +0000
@@ -1,6 +1,6 @@
-#      $NetBSD: dot.shrc,v 1.4 2001/03/01 22:30:41 tv Exp $
+#      $NetBSD: dot.shrc,v 1.5 2001/03/01 22:45:49 tv Exp $
 
-hup(){ kill -HUP `head -1 /var/run/$1.pid`; }
+hup(){ (read pid; kill -HUP $pid) </var/run/$1.pid }
 ll(){ ls -l ${1+"$@"}; }
 
 case "$-" in *i*)



Home | Main Index | Thread Index | Old Index