[clug] Variables
Eyal Lebedinsky
eyal at eyal.emu.id.au
Sun Sep 10 23:11:24 UTC 2017
On 11/09/17 01:14, Bryan Kilgallin (iiNet) via linux wrote:
> My shell's tutorial mentions two of these: HOME and PWD. How might I list all such?
$ set
But you may get a very long list, so try
$ set | less
[I do not know 'fish' so YMMV]
Eyal
> {
> > echo My home directory is $HOME
> My home directory is /home/tutorial
>
> Variable substitution also occurs in double quotes, but not single quotes:
>
> > echo "My current directory is $PWD"
> }
>
> http://fishshell.com/docs/current/tutorial.html
--
Eyal Lebedinsky (eyal at eyal.emu.id.au)
More information about the linux
mailing list