path keeps bloating with repeated entries on invoking subshells
- From: Rahul <nospam@xxxxxxxxxxxxxx>
- Date: Wed, 30 Jul 2008 16:18:45 +0000 (UTC)
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
end).
Is there a smart-way around this?
--
Rahul
.
- Follow-Ups:
- Re: path keeps bloating with repeated entries on invoking subshells
- From: Bit Twister
- Re: path keeps bloating with repeated entries on invoking subshells
- From: Robert Heller
- Re: path keeps bloating with repeated entries on invoking subshells
- From: Ignoramus19611
- Re: path keeps bloating with repeated entries on invoking subshells
- From: Stephane Chazelas
- Re: path keeps bloating with repeated entries on invoking subshells
- From: Dan Espen
- Re: path keeps bloating with repeated entries on invoking subshells
- Prev by Date: Re: confusing behaviour of the * wildcard when handling "dot" files and dirs.
- Next by Date: Re: mysqld wont start...
- Previous by thread: Which linux distribution support l7-filter and ipp2p?
- Next by thread: Re: path keeps bloating with repeated entries on invoking subshells
- Index(es):
Relevant Pages
|