Finding the last arg

Brandon S. Allbery KB8JRR allbery at NCoast.ORG
Sat Jan 5 14:05:43 AEST 1991


As quoted from <1991Jan2.174157.21530 at usenet.ins.cwru.edu> by chet at odin.INS.CWRU.Edu (Chet Ramey):
+---------------
| Here's a short list of what was added to the v7 sh for the System V.2 sh:
| 
| colon form of parameter substitution to test for nullness of a variable
| set --
| numeric parameter to the shift builtin
| restricted shell mode
+---------------

Those four were in the System III /bin/sh.

+---------------
| System V shell includes `newgrp' as a builtin.  As of 4.3 BSD, the BSD sh
| accepts # as a comment only when non-interactive.
+---------------

Silliness.  I disliked this in csh, I devoutly hope AT&T didn't pick it up for
V.4 /bin/sh.  Why should # be a comment only when noninteractive?  There are
valid reasons to use comments during interactive sessions --- *especially*
under BSD, which has a working (read: pty-based) "script" command....

++Brandon
-- 
Me: Brandon S. Allbery			    VHF/UHF: KB8JRR on 220, 2m, 440
Internet: allbery at NCoast.ORG		    Packet: KB8JRR @ WA8BXN
America OnLine: KB8JRR			    AMPR: KB8JRR.AmPR.ORG [44.70.4.88]
uunet!usenet.ins.cwru.edu!ncoast!allbery    Delphi: ALLBERY



More information about the Comp.unix.shell mailing list