Re: alias in maintainer scripts?

2018-03-02 Thread Paul Wise
On Fri, Mar 2, 2018 at 11:37 AM, Paul Wise wrote: > - file a bug against shellcheck asking for detection of this situation. FTR, I've done that just now: https://github.com/koalaman/shellcheck/issues/1133 -- bye, pabs https://wiki.debian.org/PaulWise

Re: alias in maintainer scripts?

2018-03-02 Thread Ian Campbell
On Fri, 2018-03-02 at 08:29 +0100, Ralf Treinen wrote: > On Fri, Mar 02, 2018 at 04:15:18AM +0300, kact...@gnu.org wrote: > > > Is it true? When invoked as /bin/sh, GNU Bash works in Posix-emulation > > mode, and it is not that bad: > > Indeed, Bash manual section 6.11. Thanks for pointing this o

Re: alias in maintainer scripts?

2018-03-01 Thread Ralf Treinen
On Fri, Mar 02, 2018 at 04:15:18AM +0300, kact...@gnu.org wrote: > > [2018-03-01 22:54] Ralf Treinen > > should we really allow for the usage of alias in maintainer scripts? > > > > Policy 10.4 says that /bin/sh scripts may assume an interpreter > > that imple

Re: alias in maintainer scripts?

2018-03-01 Thread Paul Wise
On Fri, Mar 2, 2018 at 5:54 AM, Ralf Treinen wrote: > However, /bin/sh may be linked to bash, and bash does alias substitution > only when in interactive mode but not in batch mode [2]. That is, unless > a special bash option is set. > > ... I think we should - file a bug against shellcheck askin

Re: alias in maintainer scripts?

2018-03-01 Thread KAction
[2018-03-01 22:54] Ralf Treinen > should we really allow for the usage of alias in maintainer scripts? > > Policy 10.4 says that /bin/sh scripts may assume an interpreter > that implements the POSIX standard, plus some additional features > listed in the policy. And the

Re: alias in maintainer scripts?

2018-03-01 Thread Ralf Treinen
Hi Chris, On Thu, Mar 01, 2018 at 10:55:10PM +, Chris Lamb wrote: > > should we really allow for the usage of alias in maintainer scripts? > > As an aside, do you have any concrete examples of maintainer scripts > that do this? A quick look on codesearch.debian.net does not

Re: alias in maintainer scripts?

2018-03-01 Thread Chris Lamb
Hi Ralf, > should we really allow for the usage of alias in maintainer scripts? As an aside, do you have any concrete examples of maintainer scripts that do this? A quick look on codesearch.debian.net does not find any for me. Any bug references would be interesting too… Best wis

alias in maintainer scripts?

2018-03-01 Thread Ralf Treinen
Hi, should we really allow for the usage of alias in maintainer scripts? Policy 10.4 says that /bin/sh scripts may assume an interpreter that implements the POSIX standard, plus some additional features listed in the policy. And the POSIX standards describes alias substitution in shell scripts