This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Wed, Aug 05, 2009 at 12:13:10PM -0700, Thomas Petazzoni wrote: > Then, I add . to the PATH and try again: > > thomas@surf:/tmp/tst$ export PATH=$PATH:. > thomas@surf:/tmp/tst$ sh foobar.sh > thomas@surf:/tmp/tst$ > > It works, but only when '.' is in the PATH. > $PATH should not affect sh's "." command (aka "source") nyet@hobag:~/tmp$ cat foobar.sh #!/bin/sh . "test.mk" nyet@hobag:~/tmp$ cat test.mk export foo=bar nyet@hobag:~/tmp$ echo $PATH /home/nyet/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games nyet@hobag:~/tmp$ sh foobar.sh nyet@hobag:~/tmp$ -- Nye Liu nliu@mrv.com (818) 772-6235x248 (818) 772-0576 fax "Who would be stupid enough to quote a fictitious character?" -- Don Quixote -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |