HOME, Home and home in tcsh
erichsfreebsdlist at alogt.com
Thu Jun 9 03:03:35 UTC 2016
On Thu, 9 Jun 2016 04:56:45 +0200
Polytropon <freebsd at edvax.de> wrote:
> On Thu, 9 Jun 2016 10:29:44 +0800, Erich Dollansky wrote:
> > the answer to my question might be so obvious, but I do not know it.
> > I use this to set the home for the current project I am working on
> > and then use cd $Home to return to the project's home directory:
> > setenv home "`pwd`/"
> > setenv Home "`pwd`/"
> > 'home' contains always my real home directory. 'Home' contains the
> > project's home directory as expected.
> > Does anybody know why it is like this?
> The variable $home is set by the C shell automatically, similarly
> as it does "set path = (... list of path elements ...)"; $home is
> set like $HOME by the shell itself and should not be altered by
> the user (without purpose). :-)
> From "man csh":
> The character `~' at the beginning of a filename refers to
> home direc- tories. Standing alone, i.e., `~', it expands to the
> invoker's home directory as reflected in the value of the home shell
> Special shell variables
I obviously missed it here.
> HOME Equivalent to the home shell variable.
Now I know that it does fall down from the blue sky.
More information about the freebsd-questions