Voder-Vocoder

The Log of Hal Canary

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | RSS2 | Atom | Backend

« | »

about “$@”

#!/bin/sh
## test.sh ##
for x in  $*  ; do echo $x; done ; echo "" ;
for x in "$*" ; do echo $x; done ; echo "" ;
for x in  $@  ; do echo $x; done ; echo "" ;
for x in "$@" ; do echo $x; done ; echo "" ;

Output:

$ code/test.sh 1 "2 3"
1
2
3

1 2 3

1
2
3

1
2 3

Hal Canary | Computers & Code | 2004-06-01 16:43:27 UTC
Permanent Link Comments Off | No Comments

Comments are closed.
Email me your comments — h3 at halcanary dot org.

Copyright 1997-2012 by Hal Canary.
mailto: halcanary at gmail dot com
http://halcanary.org