Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!warwick!cudcv From: cudcv@warwick.ac.uk (Rob McMahon) Newsgroups: comp.unix.questions Subject: Re: KSH script arguments Message-ID: <1990Aug31.105358.6949@warwick.ac.uk> Date: 31 Aug 90 10:53:58 GMT References: <858@iiasa.UUCP> <842@travis.csd.harris.com> <1990Aug18.141141.24890@warwick.ac.uk> Sender: news@warwick.ac.uk (Network news) Organization: Computing Services, Warwick University, UK Lines: 24 In article <1990Aug18.141141.24890@warwick.ac.uk>, I said: | I know ksh has `set -A array', but does it have an equivalent of "$@" for | arrays other than the positional paramters ? We don't have ksh, and can't | afford to get it, but when bash gets a bit more solid I will switch to it if | it has an equivalent of csh's $array:q. In article <842@travis.csd.harris.com> brad@SSD.CSD.HARRIS.COM (Brad Appleton) writes: |set -A argv "$@" ## dump positional parameters into an array |... |from here on in you can use ${argv[i]} instead of $i and |${argv[*]} (${argv[@]}) in place of $* ($@). Aha! Does this mean that ksh *does* have a way of doing csh's $array:q, "${array[@]}" ? The only response I had before was that it didn't. Sadly I've just discovered that the current version of bash doesn't even have `set -A' (yet ?). Sounds like time for a posting to gnu.bash.bug. Enquiring minds ... oh forget it. Rob -- UUCP: ...!mcsun!ukc!warwick!cudcv PHONE: +44 203 523037 JANET: cudcv@uk.ac.warwick INET: cudcv@warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England