$@ returns the arguments to the script, similar to $*

The following bash script will show the differences.


x------------- myargs.sh ------------------
#!/bin/bash
# myargs.sh

IFS=";"

echo "$@"

echo "$*"

echo $@

echo $*

echo "$# arguments"

exit 0

x-------- end myargs.sh -----------------

-- 
*  For God so loved the world that He gave his only begotten Son,  *
*  that whoever believes in Him should not perish...    John 3:16  *
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to