[TAG] Quoting question
Kapil Hari Paranjape
kapil at imsc.res.in
Sat Jun 13 21:16:11 MSD 2009
Hello,
Quotes are generally a pain!
> I'm stumped now, I've tried loots of combinations but can't seem to find
> the right combination so that the script works. The spaces in the name
> "Dokumente und Einstellungen" break the script. How do I have to
> escape/quote it?
You need to put the $@ in quotes as in "$@"
Here is an example:
#!/bin/sh
pass_args(){
show_args "$@"
}
show_args(){
echo $1
echo $2
}
pass_args 'An argument with a space' 'spaced out'
Regards,
Kapil.
--
More information about the TAG
mailing list