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

Re: What to do about bashisms?



On Mon, Aug 09, 1999 at 09:16:40PM +0200, Piotr Roszatycki wrote:
> > My suggestion:
> > lintian could report:
> > * usage 'source' (correct is '.')
> > * usage 'echo -e' (AFAIR ash doesn't support it)

Marcelo E. Magallon <mmagallo@efis.ucr.ac.cr> wrote:
> /bin/echo does.
> 
> $ /bin/echo -e 'This\tis\tnot\ta\tbashism'
> This    is      not     a       bashism

This issue is not ash vs. bashisms -- the issue is whether
the constructions are POSIX.

Debian policy specifies that /bin/sh may be a symbolic link to
any posix compatible shell.  The use of non-bashisms which are
not valid for a posix /bin/sh script are therefore buggy.

[Debian policy even suggests using /bin/ash as a method for determining
if a construction is probably posix compliant...]

-- 
Raul


Reply to: