Re: path keeps bloating with repeated entries on invoking subshells
- From: Ignoramus19611 <ignoramus19611@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Jul 2008 12:50:30 -0500
On 2008-07-30, Rahul <nospam@xxxxxxxxxxxxxx> wrote:
In my tcshell I used to follow the construct:
set path=(./ ~/bin/ ~/bin/foocmds [snip]........ $path)
I thought this was the right way to go since I only append to the
systemwide path settings without overwriting anything as a user.
But yesterday I got a "word too long error" and on investigation I find
that each time I invoke a subshell (say, I made a change to the .cshrc or
added a new script to the bin) I find that the path keeps bloating up with
duplicate entries (I guess a side-effect of appending the $path at the
Is there a smart-way around this?
Just set it to a fixed string every time instead of growing it.
Due to extreme spam originating from Google Groups, and their inattention
to spammers, I and many others block all articles originating
from Google Groups. If you want your postings to be seen by
more readers you will need to find a different means of
posting on Usenet.
- Prev by Date: Re: path keeps bloating with repeated entries on invoking subshells
- Next by Date: Re: usb stick and ext3?
- Previous by thread: Re: path keeps bloating with repeated entries on invoking subshells
- Next by thread: Re: path keeps bloating with repeated entries on invoking subshells