Re: How to install a custom permanent postinstall handler?

2016-04-04 Thread Achim Gratz
Andrey Repin writes: > I agree, of course, but in this case, I have to ask one not strictly > Cygwin-related question: > Is 'local -' a POSIX construct and/or is there a way to achieve the same > effect without using it? (Localize any shell option changes within a > function.) No. See my reply el

Re: How to install a custom permanent postinstall handler?

2016-04-04 Thread Helmut Karlowski
--- > On 04/04/2016 12:09 AM, Yaakov Selkowitz wrote: > > On 2016-04-03 18:05, Andrey Repin wrote: > >> Because, within my reach, Cygwin is the only system that not using > >> DASH as > >> /bin/sh. Though, I may try rolling some busybox… > > > > Ther

Re: How to install a custom permanent postinstall handler?

2016-04-04 Thread Eric Blake
On 04/04/2016 12:09 AM, Yaakov Selkowitz wrote: > On 2016-04-03 18:05, Andrey Repin wrote: >> Because, within my reach, Cygwin is the only system that not using >> DASH as >> /bin/sh. Though, I may try rolling some busybox… > > There *is* a world outside of Debian/Ubuntu; Fedora, RHEL/CentOS, and

Re: How to install a custom permanent postinstall handler?

2016-04-04 Thread Andrey Repin
Greetings, Yaakov Selkowitz! > On 2016-04-03 18:05, Andrey Repin wrote: >> Because, within my reach, Cygwin is the only system that not using DASH as >> /bin/sh. Though, I may try rolling some busybox… > There *is* a world outside of Debian/Ubuntu; I have no doubt in that. > Fedora, RHEL/CentOS

Re: How to install a custom permanent postinstall handler?

2016-04-03 Thread Yaakov Selkowitz
On 2016-04-03 18:05, Andrey Repin wrote: Because, within my reach, Cygwin is the only system that not using DASH as /bin/sh. Though, I may try rolling some busybox… There *is* a world outside of Debian/Ubuntu; Fedora, RHEL/CentOS, and Arch Linux all use bash for /bin/sh. However, a simple tes

Re: How to install a custom permanent postinstall handler?

2016-04-03 Thread Andrey Repin
Greetings, Yaakov Selkowitz! > On 2016-04-03 01:24, Achim Gratz wrote: >> Yaakov Selkowitz writes: >>> I am not in favour of /bin/sh being alternatives-able. >> >> I'd posit that it should not be bash then and somwone else might >> reasonably want a different /bin/sh, perhaps even bash. Which is

Re: How to install a custom permanent postinstall handler?

2016-04-03 Thread Yaakov Selkowitz
On 2016-04-03 01:24, Achim Gratz wrote: Yaakov Selkowitz writes: I am not in favour of /bin/sh being alternatives-able. I'd posit that it should not be bash then and somwone else might reasonably want a different /bin/sh, perhaps even bash. Which is exactly why the alternatives system exists.

Re: How to install a custom permanent postinstall handler?

2016-04-03 Thread Achim Gratz
Dirk Fassbender writes: > So it is not easy to write portable scripts for the standard shell > /bin/sh between different systems and the exchange of the standard > shell needs a check for all scripts, that uses a shebang line /bin/sh > or are use during system initialisation. Whatever is under /bi

Re: How to install a custom permanent postinstall handler?

2016-04-03 Thread Dirk Fassbender
Am 03.04.2016 um 08:24 schrieb Achim Gratz: Yaakov Selkowitz writes: I am not in favour of /bin/sh being alternatives-able. I'd posit that it should not be bash then and somwone else might reasonably want a different /bin/sh, perhaps even bash. Which is exactly why the alternatives system exis

Re: How to install a custom permanent postinstall handler?

2016-04-02 Thread Achim Gratz
Yaakov Selkowitz writes: > I am not in favour of /bin/sh being alternatives-able. I'd posit that it should not be bash then and somwone else might reasonably want a different /bin/sh, perhaps even bash. Which is exactly why the alternatives system exists. > The *proper* course of action is to us

Re: How to install a custom permanent postinstall handler?

2016-04-02 Thread Yaakov Selkowitz
On 2016-04-02 04:21, Achim Gratz wrote: Andrey Repin writes: Couple of my scripts rely on ASH/DASH functionality that is not present in BASH. (Namely "local -".) To amend that, I make a symlink /bin/sh = /bin/dash . But every time bash update, it overwrite the link. I think the correct course

Re: How to install a custom permanent postinstall handler?

2016-04-02 Thread Achim Gratz
Eric Blake writes: > Since I maintain both dash and bash, I'm game for setting up /bin/sh as > an alternative. However, I've never targeted the alternatives system > before as a package maintainer; any advice on docs or an example that I > could copy from? I would probably make the defaults give b

Re: How to install a custom permanent postinstall handler?

2016-04-02 Thread Eric Blake
On 04/02/2016 03:21 AM, Achim Gratz wrote: > Andrey Repin writes: >> Couple of my scripts rely on ASH/DASH functionality that is not present in >> BASH. (Namely "local -".) >> To amend that, I make a symlink /bin/sh = /bin/dash . >> But every time bash update, it overwrite the link. > > I think th

Re: How to install a custom permanent postinstall handler?

2016-04-02 Thread Achim Gratz
Andrey Repin writes: > Couple of my scripts rely on ASH/DASH functionality that is not present in > BASH. (Namely "local -".) > To amend that, I make a symlink /bin/sh = /bin/dash . > But every time bash update, it overwrite the link. I think the correct course of action would be to put /bin/sh un

How to install a custom permanent postinstall handler?

2016-04-01 Thread Andrey Repin
Greetings, All! Couple of my scripts rely on ASH/DASH functionality that is not present in BASH. (Namely "local -".) To amend that, I make a symlink /bin/sh = /bin/dash . But every time bash update, it overwrite the link. So… How would I go about creating a handler that would restore the parity? W