This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: bash problem. (Am I missing something?)
- To: jeffdb at netzone dot com
- Subject: Re: bash problem. (Am I missing something?)
- From: "Earnie Boyd" <earnie_boyd at hotmail dot com>
- Date: Wed, 03 Dec 1997 04:54:54 PST
- Cc: gnu-win32 at cygnus dot com
>From: jeffdbREMOVETHIS@netzone.com (Mikey)
>To: gnu-win32@cygnus.com
>Subject: Re: bash problem. (Am I missing something?)
>Date: Tue, 02 Dec 1997 23:46:09 GMT
>Reply-To: jeffdbREMOVETHIS@netzone.com
>
>try
>
>source ./test.sh
>
>#!/bin/sh causes the script to run in a subshell, so any exports
>are lost when the toplevel shell resumes. at least I think that's
right;^)
wrong. source is equates to Bourne's . command which will read the
given FILENAME and execute the commands in the current shell context.
This means that any environment variable set will remain at the end of
the script. Any cd performed will remain in effect as well.
>no idea where the error comes from unless #! aren't the very first 2
chars in the file.
>
I believe the problem to be \r in the script file. And possibly
text!=binary.
[snip]
- \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd@hotmail.com-
------ooo0O--O0ooo-------
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".