* Lars Brueckner <lars.brueckner@ito.tu-darmstadt.de> [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: brl@pcpool04:~/d>./test2.sh "erstes Argument" zweites\ Argument | erstes Argument | zweites Argument | | | brl@pcpool04:~/d>./test3.sh "erstes Argument" zweites\ Argument | erstes | Argument | zweites | Argument | brl@pcpool04:~/d>./test3.sh '"erstes Argument"' 'zweites\ Argument' | "erstes | Argument" | zweites\ | Argument | brl@pcpool04:~/d>./test3.sh '"erstes Argument"' zweites\\ Argument | "erstes | Argument" | zweites\ | Argument | brl@pcpool04:~/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)
Attachment:
pgpqXJuRj8sks.pgp
Description: PGP signature