Charles Plessy a écrit :
#!/bin/sh
echo -e "AMAP is now available under /usr/bin/amap.\nThis wrapper 
(/usr/bin/amap-align) will be removed in the future."
exec /usr/bin/amap "$@"

I am just wondering if the quotes around $@ are necessary...


indeed, they are:

$ cat quotes.sh
#! /bin/sh

for i in $@; do echo "$i"; done
echo "---------------------------"
for i in "$@"; do echo "$i"; done

$ sh quotes.sh "1 2 3"
1
2
3
---------------------------
1 2 3
$


--
Emmanuel le Chevoir


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

Reply via email to