Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!tektronix!tekecs!dce From: dce@tekecs.UUCP (David Elliott) Newsgroups: net.unix-wizards Subject: Re: "$@ in shell" Message-ID: <1873@tekecs.UUCP> Date: Sun, 21-Aug-83 14:01:37 EDT Article-I.D.: tekecs.1873 Posted: Sun Aug 21 14:01:37 1983 Date-Received: Sun, 21-Aug-83 16:23:59 EDT References: utcsstat.923 Lines: 44 We here at Tektronix are "Committed To Changing The Bourne Shell". (just kidding) The original article noted that "$@" inside of a script does not pass on null arguments. Example : #!/bin/sh # This script is called 'foo'. a=0 for i in "$@" do echo "$i" a=`expr $a + 1` done echo "Number of args is $a" If you type 'foo a b c d e', you get a b c d e Number of args is 5 If you type 'foo a b c "" d e', you get a b c d e Number of args is 5 The original submitter said that they had changed 'ksh' (whatever the hell that is. We have a ksh, too, but he couldn't have a copy of it) and hoped that '6.0' sh would have this fixed. Andy, the author of the article you saw and my boss, doesn't want to change the shell. In fact, he's against it as much as you are. (Neither of you are as adamant as I am, as I AM making some internal mods to sh, which is my job.) David