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

Re: curly brackets a bashism?



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.



Reply to: