Re: bashism question
On Mon, Jun 23, 2008 at 05:39:07PM +0100, Adam D. Barratt wrote:
> It's not guaranteed to work in any shell implementing POSIX without
> extensions, which is what Policy says you're allowed to rely on (well,
> plus a few extensions, but not including trap and kill with signal
> numbers).
Right. But what does this mean in terms of our Lenny release goal "dash as
sh" which essantially was what I meant to ask.
> It's safe for use with dash, but using it is technically a violation of
> Policy (albeit a widespread one). There is a Policy bug open requesting
> that the XSI extensions for trap and kill be permitted (#477240).
>From this I'd say for Lenny using trap with a signal number is fine.
Also they same question comes up with the "local" keyword. Dash seems to
support this, while it is not POSIX.
Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!
Reply to: