Take the 2-minute tour ×  The question could probably be
reworded. What I would like to have is certain path, say
/workingsrc to refer to a different real path per shell (bash)
instance simultaneously.  So in an instance of bash I can do ls
/workingsrc and get the contents of /foo/bar and in another
instance that is running at the same time in the same machine do
ls /workingsrc and get the contents of /foo/zoo.  Do you know if
there is a way to do this? I'm using linux and bash.
share|improve this question  2 Answers 2  up vote 1 down vote
accepted  Variant symlinks is what you want, but are only on
*BSD and AFS filesystem. Working with environment variables is
much easier (see Hyppy response).  share|improve this answer You
are right, this is exactly what I was looking for. Too bad they
are not available in Linux. –  Jacobo de Vera Mar 18 '11 at
13:51  You can probably do this with environment variables. For
example: Shell 1:   Shell 2:   Back on shell 1:   You should
still see /foo/bar on shell 1, even aft