Re: What's the meaning of "echo $@"?
$@ 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 debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: