[ExtractStream] .profile/$PATH problems

sharkey@a... sharkey at a...
Tue, 17 Jul 2001 01:26:23 -0400


> --- sharkey@a... wrote:
> [snip]
> > > I have this in my .profile:
> > > 
> > > export PATH=/tivo-bin/:$PATH":"/hack/bin/
> > 
> > That's a most unusual use of quotation marks you've got there. Why
> > are you quoting the second :?
> 
> IIRC, quoting is one of the ways to prevent the shell from interpreting
> the : as a modifier introducer for the variable (e.g. $PATH:1 being
> word one of $PATH).

I thought curly braces were required for the use of : modifiers in bash.
(e.g. $PATH:1 is $PATH:1, but ${PATH:1} is the last letter of PATH.)

Things are different in csh, but, this isn't csh.

Eric