[ANNOUNCEMENT] Updated: dash-0.5.9.1-1
Brian Inglis
Brian.Inglis@SystematicSw.ab.ca
Thu Feb 23 19:59:00 GMT 2017
On 2017年02月23日 12:46, Steven Penny wrote:
> On 2017年2月23日 20:38:08, Andrey Repin wrote:
>> $ cat /etc/postinstall/zp_dash-as-bin-sh.dash
>> #!/bin/dash
>>> test ! -h /bin/sh.exe && {
>> _f="$(mktemp /bin/sh.XXXXXX)"
>> {
>> mv /bin/sh.exe "$_f"
>> ln -s /bin/dash.exe /bin/sh.exe
>> } || mv "$_f" /bin/sh.exe
>> rm "$_f"
>> }
>> exit 0
>> This is a bad idea.
>> If script succeeds, then yes sh is now a symlink to Dash, but only
> for my system. I still have to use #!/bin/dash with my scripts,
> because otherwise people with Bash -> sh will not get the speed
> boost. The whole point of this thread is that it should be changed
> for everyone.
And should be done using update_alternatives so it and associated
man pages can easily be changed if anyone suffers breakage.
Some people may continue to need or prefer using bash in POSIX mode.
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list