* Lars Brueckner <[EMAIL PROTECTED]> [020327 10:08]: > ~/.openoffice/soffice $@ > > There is still a problem if the name of the attachment contains spaces. This > can be worked around by changing $@ to "$@" , but I think it this is a bug in > kmail (it should either quote the name itself or remove the whitespace).
I think it should be "$@", as the calling programm can otherwise do nothing about it, if there are spaces in it: [EMAIL PROTECTED]:~/d>./test2.sh "erstes Argument" zweites\ Argument | erstes Argument | zweites Argument | | | [EMAIL PROTECTED]:~/d>./test3.sh "erstes Argument" zweites\ Argument | erstes | Argument | zweites | Argument | [EMAIL PROTECTED]:~/d>./test3.sh '"erstes Argument"' 'zweites\ Argument' | "erstes | Argument" | zweites\ | Argument | [EMAIL PROTECTED]:~/d>./test3.sh '"erstes Argument"' zweites\\ Argument | "erstes | Argument" | zweites\ | Argument | [EMAIL PROTECTED]:~/d>cat * #!/bin/sh echo "|" $1 "|" $2 "|" $3 "|" $4 "|" #!/bin/sh ./test1.sh "$@" #!/bin/sh ./test1.sh $@ Hochachtungsvoll, Bernhard R. Link -- The man who trades freedom for security does not deserve nor will he ever receive either. (Benjamin Franklin)
pgpcD19NLddCf.pgp
Description: PGP signature