Re: Ash woes. [Was: Re: Installation & Uninstallation issues ]

2003-10-07 Thread Corinna Vinschen
On Mon, Oct 06, 2003 at 07:54:51PM -0400, Pierre A. Humblet wrote:
> The problem recently reported by Tim Dierks in
> 
> turns out to be identical to the one investigated in
> 
> 
> The scripts are executable but ash refuses to execute them.
> Ash uses various methods to make that decision, none of which
> is correct. It should be patched to use access(), as it already
> does for its built-in test. PTC.

AFAICS, this should only affect commands given with absolute paths,
see beginning of function exec.c::find_command().

I'll upload a patched ash in a minute.  Could you give it a test?

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Ash woes. [Was: Re: Installation & Uninstallation issues ]

2003-10-06 Thread Christopher Faylor
On Tue, Oct 07, 2003 at 12:09:39AM -0300, Fr?d?ric L. W. Meunier wrote:
>Thanks, I'll do that. I remember when I tried as a symlink and
>something hung setup (I guess setup doesn't handle them ?).

setup isn't a cygwin application.  symlinks are a cygwin invention.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Ash woes. [Was: Re: Installation & Uninstallation issues ]

2003-10-06 Thread Frédéric L. W. Meunier
Thanks, I'll do that. I remember when I tried as a symlink and
something hung setup (I guess setup doesn't handle them ?). It
wasn't the XFree86-bin-icons issue, which also hung when I
reverted the symlink.

I'll go through the archives to see what I should do for
XFree86-bin-icons since I had to use 'Skip' it in the last
installs.

On Mon, 6 Oct 2003, Igor Pechtchanski wrote:

> bash should be fully sh-compatible.  If you want to replicate
> the Linux setup, simply rename /bin/sh to /bin/ash and
> hardlink (or symlink) /bin/bash to /bin/sh (you will get a
> noticeable startup time increase for your scripts, which was
> the original reason for the ash package, but I doubt you'd
> have too many other problems -- except you won't be able to
> detect non-portable shell scripts on Cygwin anymore).

-- 
How to contact me - http://www.pervalidus.net/contact.html

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Ash woes. [Was: Re: Installation & Uninstallation issues ]

2003-10-06 Thread Igor Pechtchanski
On Mon, 6 Oct 2003, Frédéric L. W. Meunier wrote:

> On Mon, 6 Oct 2003, Pierre A. Humblet wrote:
>
> > Perhaps the setup postinstall scripts should change to using
> > bash. Its behavior is correct and will avoid frustrations.
>
> It'd be nice it I could get rid of it. I have to use
> #!/bin/bash in my scripts, change rxvt (the X11 version)
> because it defaults to sh, use "shell bash" in my .screenrc...
>
> If setup starts using bash, can I get rid of ash, or something
> would still use it ?

Frédéric,

bash should be fully sh-compatible.  If you want to replicate the Linux
setup, simply rename /bin/sh to /bin/ash and hardlink (or symlink)
/bin/bash to /bin/sh (you will get a noticeable startup time increase for
your scripts, which was the original reason for the ash package, but I
doubt you'd have too many other problems -- except you won't be able to
detect non-portable shell scripts on Cygwin anymore).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Ash woes. [Was: Re: Installation & Uninstallation issues ]

2003-10-06 Thread Frédéric L. W. Meunier
On Mon, 6 Oct 2003, Pierre A. Humblet wrote:

> Perhaps the setup postinstall scripts should change to using
> bash. Its behavior is correct and will avoid frustrations.

It'd be nice it I could get rid of it. I have to use
#!/bin/bash in my scripts, change rxvt (the X11 version)
because it defaults to sh, use "shell bash" in my .screenrc...

If setup starts using bash, can I get rid of ash, or something
would still use it ?

-- 
How to contact me - http://www.pervalidus.net/contact.html

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/