On Tue, Apr 29, 2008 at 11:13:11AM -0300, Leonardo Rodrigues de Mello wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> At first thank you for your fast reply! :-P
> 
> In bash you need to turn the switch -e on to enable escape sequences.
> BUT in dash the escape sequences are enabled by default.
> 
> when you run /bin/echo you are not using the builtin shell command,
> but the echo binary command.
> 
> in this package rules file you use just echo "something", that will
> call the shell builtin command, and not the /bin/echo binary command.
> 
> There is two solutions to this bug, be compatible with dash as in
> lenny it will be the default shell, or use /bin/echo instead of just
> echo. Adopted the first one, but if you believe it is better, 's/echo
> - -e/\/bin\/echo -e/g' .

This is nonsense.

The fact that lenny will have 'dash' as default shell does not mean
that you can assume that your 'echo' will exactly be what 'dash'
provides.

The whole point in avoidin bashisms is that scripts should work with
other shells as well.

This way you are just exchanging "bashism" with a "dashism".

> And the patch works if you are using DASH as shell interpreter.

This is not mandated by policy AFAIK. 

a.



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

Reply via email to