Another dumb question

Quality Quorum qqi@world.std.com
Sat Apr 1 00:00:00 GMT 2000


On Tue, 28 Mar 2000, Thunder Scientific Corporation wrote:

> Wow! You folks helped me get sufficiently oriented to get a hold of the
> material  I needed to find and master.  Thanks a lot, everyone.
> 
> So here is my other question:
>     Why can't I change my PATH in a shell script?
> 
> Suppose I wish to add the traditional /foo/bar to my search path.  I can
> type in "export PATH=$PATH:/foo/bar", and that works.  I.e., if I type "echo
> $PATH" I get back my original path concatenated with ":/foo/bar".  Yet if I
> try putting this into a shell script I get no error messages but "echo
> $PATH" returns the unmodified original search path.  None of the variants
> I've tried seems to work.  (I'm running a new Red Hat Linux 6.1
> installation.)
> 
> Why?
> 
> Help would again be appreciated.

If your are using sh, bash or ksh use

. file-name

If you are using csh, tcsh, zcsh use

source file-name


> 
> Richard Bowser
> Engineer
> Thunder Scientific Corporation
> 
> email:    richardb@thunderscientific.com
> 
> 
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
> 

Thanks,

Aleksey



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list