Commit 22d3b5a9 authored by Victor Engmark's avatar Victor Engmark Committed by Yt
Browse files

doc: Quote variable references

parent 852ef6e9
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -310,16 +310,16 @@ For this to work fully, you must also have this script sourced when you are logg

```ShellSession
#!/bin/sh
if [ -d $HOME/.nix-profile/etc/profile.d ]; then
  for i in $HOME/.nix-profile/etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
if [ -d "${HOME}/.nix-profile/etc/profile.d" ]; then
  for i in "${HOME}/.nix-profile/etc/profile.d/"*.sh; do
    if [ -r "$i" ]; then
      . "$i"
    fi
  done
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}