doc: Quote variable references
This commit is contained in:
parent
852ef6e971
commit
22d3b5a9e9
|
@ -310,16 +310,16 @@ For this to work fully, you must also have this script sourced when you are logg
|
||||||
|
|
||||||
```ShellSession
|
```ShellSession
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -d $HOME/.nix-profile/etc/profile.d ]; then
|
if [ -d "${HOME}/.nix-profile/etc/profile.d" ]; then
|
||||||
for i in $HOME/.nix-profile/etc/profile.d/*.sh; do
|
for i in "${HOME}/.nix-profile/etc/profile.d/"*.sh; do
|
||||||
if [ -r $i ]; then
|
if [ -r "$i" ]; then
|
||||||
. $i
|
. "$i"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
||||||
Now just run `source $HOME/.profile` and you can start loading man pages from your environment.
|
Now just run `source "${HOME}/.profile"` and you can start loading man pages from your environment.
|
||||||
|
|
||||||
### GNU info setup {#sec-gnu-info-setup}
|
### GNU info setup {#sec-gnu-info-setup}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue