Article View: alt.uu.comp.os.linux.questions
Article #147Re: Can Red Hat Linux run Shell Script?
From: Tim Haynes
Date: Mon, 30 Aug 1999 00:00
Date: Mon, 30 Aug 1999 00:00
25 lines
2700 bytes
2700 bytes
kf <ken@cleveland.lug.net> doodled in uk.comp.os.linux: > Alternatively, put your script in a subdirectory which is in the already > existing path (do "env | grep -i path" to find out) or include the directory > in which your script resides in the path; for example, if you have the > script in your home directory, put the following in your ".profile" file: > "$PATH=$PATH:$HOME". That's a bourne shell + derivatives thing. As I said earlier, in csh it's path, not PATH, you don't export it but you setenv it, and you rehash to get the shell to look again the next time, although this depends on whether he really is running (t)csh instead of bash in order to execute the script. OTOH under no circumstances will '$PATH=$PATH:$HOME' in .profile do what he wanted it to do! (You've not said to export PATH afterwards, $HOME isn't necessarily where his script it, and $PATH is not an lvalue...) -- ~Tim ___ http://www.glutinous.custard.org/ _______ tim@glutinous.custard.org ____ | Geek Code: GCS dpu s-:+ a-- C++++ UBLUAVHSC++++ P+++ L++ E--- W+++(--) N++ | | w--- O- M-- V-- PS PGP++ t--- X+(-) b D+ G e++(*) h++(*) r--- y- | | .|` Clouds cross the black moonlight / | | Rushing on down to the circle of the turning world .|` (Runrig) | `----------------------------------------------------------------------------'
Technical Details
Message-ID:
<slrn7rts8q.sj.piglet@spodzone.pigsty.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7plmre$8e1$1@toto.tig.com.au> <37BED51B.2C85321B@cleveland.lug.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcfb9,d9db4d784d4d5b62 X-Google-Attributes: gidfcfb9,public X-Google-Thread: fe2cf,d9db4d784d4d5b62 X-Google-Attributes: gidfe2cf,public X-Google-Thread: 10a997,d9db4d784d4d5b62 X-Google-Attributes: gid10a997,public X-Google-Thread: 1101c9,d9db4d784d4d5b62 X-Google-Attributes: gid1101c9,public X-Google-Thread: f9b51,d9db4d784d4d5b62 X-Google-Attributes: gidf9b51,public X-Google-Thread: 10d8ad,d9db4d784d4d5b62 X-Google-Attributes: gid10d8ad,public X-Google-Thread: 102983,d9db4d784d4d5b62 X-Google-Attributes: gid102983,public From: piglet@glutinous.custard.org (Tim Haynes) Subject: Re: Can Red Hat Linux run Shell Script? Date: 1999/08/30 Message-ID: <slrn7rts8q.sj.piglet@spodzone.pigsty.org> X-Deja-AN: 519017183 X-NNTP-Posting-Host: spodzone.demon.co.uk:193.237.47.64 References: <7plmre$8e1$1@toto.tig.com.au> <37BED51B.2C85321B@cleveland.lug.net> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 936045518 nnrp-12:13701 NO-IDENT spodzone.demon.co.uk:193.237.47.64 X-Caffeine-Requirement: Irn Bru and rising User-Agent: slrn/0.9.5.6 (UNIX) Reply-To: piglet@glutinous.custard.org Newsgroups: alt.uu.comp.os.linux.questions,at.linux,aus.computers.linux,comp.os.linux.advocacy,comp.os.linux.setup,linux.redhat,uk.comp.os.linux