bash vs. ash vs. postinstall

Eric Blake
Thu Jun 23 02:23:00 GMT 2005

Hash: SHA1

According to Corinna Vinschen on 6/22/2005 7:27 AM:
> What about something along these lines:
> - ash only provides /bin/ash.exe
> - bash provides /bin/bash.exe and sh.exe (linked or copied)
> - ash gets a dependency to bash.
> - *Both* packages get postinstall #!/bin/bash scripts which copy bin/bash
>   to /bin/sh.
> Would that help?

I agree with the first three points.  But on the fourth one, does
setup.exe really honor the #!?  (If it doesn't, then initscripts-0.9-1,
squid-2.4.STABLE7-1, tcp_wrappers-7.6-1, and xinetd-2.3.9-1 currently have
problems, because their postinstalls try to use #!/bin/bash.)  All says is that a is run with the
cygwin shell (so that should be cleaned up to be more exact).  I don't
think it would be too hard to provide a .bat that does the copy, though.

Also, I can see the value of ash having a postinstall script to copy bash
to /bin/sh, but if bash is already providing /bin/sh in its package, does
it really need the postinstall as well?

- --
Life is short - so eat dessert first!

Eric Blake   

Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Thunderbird -


More information about the Cygwin-apps mailing list