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

Re: curly brackets a bashism?



On Mon, Feb 11, 2002 at 01:27:30PM +0100, Santiago Vila wrote:
> Simon Richter wrote:
> > one of my sponsees' packages (gv) doesn't build, as it uses a command of
> > the form
> >
> > cp debian/{preinst,postinst,prerm,postrm} ...
> >
> > This works fine with sh -> bash, but doesn't for sh -> ash.
> >
> > Which one is correct?
> >
> >  - {} is a bashism. lintian should detect this, and my sponsee should fix
> >    his package.
> >
> > or
> >
> >  - {} is POSIX. ash should be fixed.
> 
> It's a bashism, but it would be difficult for lintian to check.

Does this mean that package installs {tests or something} should be done under
ash instead of bash? IMO, that would be good as ash is listed as standard 
command line interpreter.. Maybe fakeroot should run in ash and not keep
the currently open shell.

- Adam



Reply to: