public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Broken Bash 2.05? a configure can't find /bin/sh
@ 2001-04-25  9:29 Troy Noble
  0 siblings, 0 replies; 4+ messages in thread
From: Troy Noble @ 2001-04-25  9:29 UTC (permalink / raw)
  To: 'Christopher Faylor'; +Cc: 'cygwin@cygwin.com'

Sorry.

We've just run into a lot of problems with people who are used to
writing KSH or BASH programs testing with /bin/bash and then putting
#!/bin/sh in their file.  Then ash pukes when we run their scripts.
So to make life simpler here we've found it easier just to put
/bin/bash in place of /bin/sh since it is more or less a proper
superset for our purposes.

That's why I qualified my remarks with "this is how we got around it".

I will be more careful in the future not to offer non-standard help
suggestions.

Please accept my sincere apologies.

Troy

-----Original Message-----
From: Christopher Faylor [ mailto:cgf@redhat.com ]
Sent: Wednesday, April 25, 2001 9:37 AM
To: cygwin@cygwin.com
Subject: Re: Broken Bash 2.05? a configure can't find /bin/sh


On Wed, Apr 25, 2001 at 08:59:41AM -0600, Troy Noble wrote:
>bash doesn't get installed as /bin/sh, it gets installed as /bin/bash.

I'm not sure why you are making this observation.  The error that
Dennis is reporting is that he couldn't find /bin/sh.  The error
is coming *from* bash but there is no indication that he wants
/bin/bash to be copied to /bin/sh.

The solution is probably to rerun setup.exe and specifically select
'ash'.  If it seems to be installed, uninstall it and then reinstall it.

If that still doesn't solve the problem then 'cygcheck -r -s -v' output
will probably pinpoint the problem.

>The "ash" package (a Bourne shell clone) is the one that actually gets
>installed as /bin/sh.  So if you didn't install ash*.tar.gz, you've
>likely not got a /bin/sh.
>
>What we've done to get around this is install the "bash" package, but
>not the "ash" package, and then we:
>
>cp -p /bin/bash.exe /bin/sh.exe
>
>and that ensures that we are always running bash and that /bin/sh
>is always there.  We've standardized on BASH for our purposes here,
>so this is acceptable practice for our environment.
>
>YMMV.

Indeed.  Please don't do this, or even recommend it unless you really
know what you're doing.  Suggesting that people with problems modify
their installation in a non-standard way is generally not good advice.

cgf

>-----Original Message-----
>From: Dennis Wilson [ mailto:lincwils@teleport.com ]
>Sent: Tuesday, April 24, 2001 8:08 PM
>To: cygwin@cygwin.com
>Subject: Broken Bash 2.05? a configure can't find /bin/sh
>
>
>I ungraded my cygwin on my Win2k system. It now can't find sh.
>I did not do anything but run the setup and accept the packages that needed
>to be upgraded.
>
>I was working on building tcl and when I went back into the directory to
run
>the configure script I got the following message.
>
>$ ./configure --enable-gcc
>bin/bash .configure: bad interpreter: no such file or directory.
>
>What appears to be going on is that the pathing has changed and /bin/sh is
>no longer valid.
>Any ideas??
>
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple

-- 
cgf@cygnus.com                        Red Hat, Inc.
http://sources.redhat.com/            http://www.redhat.com/

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Broken Bash 2.05? a configure can't find /bin/sh
  2001-04-25  8:01 Troy Noble
@ 2001-04-25  8:36 ` Christopher Faylor
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Faylor @ 2001-04-25  8:36 UTC (permalink / raw)
  To: cygwin

On Wed, Apr 25, 2001 at 08:59:41AM -0600, Troy Noble wrote:
>bash doesn't get installed as /bin/sh, it gets installed as /bin/bash.

I'm not sure why you are making this observation.  The error that
Dennis is reporting is that he couldn't find /bin/sh.  The error
is coming *from* bash but there is no indication that he wants
/bin/bash to be copied to /bin/sh.

The solution is probably to rerun setup.exe and specifically select
'ash'.  If it seems to be installed, uninstall it and then reinstall it.

If that still doesn't solve the problem then 'cygcheck -r -s -v' output
will probably pinpoint the problem.

>The "ash" package (a Bourne shell clone) is the one that actually gets
>installed as /bin/sh.  So if you didn't install ash*.tar.gz, you've
>likely not got a /bin/sh.
>
>What we've done to get around this is install the "bash" package, but
>not the "ash" package, and then we:
>
>cp -p /bin/bash.exe /bin/sh.exe
>
>and that ensures that we are always running bash and that /bin/sh
>is always there.  We've standardized on BASH for our purposes here,
>so this is acceptable practice for our environment.
>
>YMMV.

Indeed.  Please don't do this, or even recommend it unless you really
know what you're doing.  Suggesting that people with problems modify
their installation in a non-standard way is generally not good advice.

cgf

>-----Original Message-----
>From: Dennis Wilson [ mailto:lincwils@teleport.com ]
>Sent: Tuesday, April 24, 2001 8:08 PM
>To: cygwin@cygwin.com
>Subject: Broken Bash 2.05? a configure can't find /bin/sh
>
>
>I ungraded my cygwin on my Win2k system. It now can't find sh.
>I did not do anything but run the setup and accept the packages that needed
>to be upgraded.
>
>I was working on building tcl and when I went back into the directory to run
>the configure script I got the following message.
>
>$ ./configure --enable-gcc
>bin/bash .configure: bad interpreter: no such file or directory.
>
>What appears to be going on is that the pathing has changed and /bin/sh is
>no longer valid.
>Any ideas??
>
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple

-- 
cgf@cygnus.com                        Red Hat, Inc.
http://sources.redhat.com/            http://www.redhat.com/

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Broken Bash 2.05? a configure can't find /bin/sh
@ 2001-04-25  8:01 Troy Noble
  2001-04-25  8:36 ` Christopher Faylor
  0 siblings, 1 reply; 4+ messages in thread
From: Troy Noble @ 2001-04-25  8:01 UTC (permalink / raw)
  To: 'Dennis Wilson', cygwin

bash doesn't get installed as /bin/sh, it gets installed as /bin/bash.

The "ash" package (a Bourne shell clone) is the one that actually gets
installed as /bin/sh.  So if you didn't install ash*.tar.gz, you've
likely not got a /bin/sh.

What we've done to get around this is install the "bash" package, but
not the "ash" package, and then we:

cp -p /bin/bash.exe /bin/sh.exe

and that ensures that we are always running bash and that /bin/sh
is always there.  We've standardized on BASH for our purposes here,
so this is acceptable practice for our environment.

YMMV.

Troy

-----Original Message-----
From: Dennis Wilson [ mailto:lincwils@teleport.com ]
Sent: Tuesday, April 24, 2001 8:08 PM
To: cygwin@cygwin.com
Subject: Broken Bash 2.05? a configure can't find /bin/sh


I ungraded my cygwin on my Win2k system. It now can't find sh.
I did not do anything but run the setup and accept the packages that needed
to be upgraded.

I was working on building tcl and when I went back into the directory to run
the configure script I got the following message.

$ ./configure --enable-gcc
bin/bash .configure: bad interpreter: no such file or directory.

What appears to be going on is that the pathing has changed and /bin/sh is
no longer valid.
Any ideas??


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Broken Bash 2.05? a configure can't find /bin/sh
@ 2001-04-24 19:08 Dennis Wilson
  0 siblings, 0 replies; 4+ messages in thread
From: Dennis Wilson @ 2001-04-24 19:08 UTC (permalink / raw)
  To: cygwin

I ungraded my cygwin on my Win2k system. It now can't find sh.
I did not do anything but run the setup and accept the packages that needed
to be upgraded.

I was working on building tcl and when I went back into the directory to run
the configure script I got the following message.

$ ./configure --enable-gcc
bin/bash .configure: bad interpreter: no such file or directory.

What appears to be going on is that the pathing has changed and /bin/sh is
no longer valid.
Any ideas??


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-04-25  9:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-25  9:29 Broken Bash 2.05? a configure can't find /bin/sh Troy Noble
  -- strict thread matches above, loose matches on Subject: below --
2001-04-25  8:01 Troy Noble
2001-04-25  8:36 ` Christopher Faylor
2001-04-24 19:08 Dennis Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).