[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Claiming a binary name used in Sarge but not in Etch.



Charles Plessy <charles-debian-nospam@plessy.org> wrote:

> #!/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 "$@"

'echo -e' is not specified by POSIX. If you want to use escapes such as
\n, you'd better use printf instead of echo.

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

Yes. The quotes are necessary so that arguments containing spaces aren't
mangled (yes, this is a weird syntax, but it's supposed to be used this
way).

-- 
Florent



Reply to: