[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to add dir to path




On Aug 10, 2007, at 1:50 PM, Wayne Topa wrote:
I have never seen this way  of defining a path [ PATH=~/XX:"${PATH}" ]

I learned PATH="a path:a new path"  everything inclosed in quotes. I
think (?) i tried your way yesterday and got strange results but I
deleted that test file so ....

I've always just done:

export PATH=$PATH:/stuff/I/want/to/add

This keeps the system path in place.

I've never had to use quotes, but I guess if you had pathnames with characters in them that had to be escaped, like spaces, it might be a good idea.



Reply to: