Skip to content

Commit

Permalink
remove confusing empty variable example
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarraga committed Jul 19, 2024
1 parent 8fee50b commit a540e97
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mkdocs/docs/HPC/linux-tutorial/common_pitfalls.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@ A common pitfall is the (accidental) use of non-defined variables.
Contrary to what you may expect, this does *not* result in error
messages, but the variable is considered to be *empty* instead.

This may lead to surprising results, for example:
<pre><code>$ <b>export WORKDIR=/tmp/test</b>
$ <b>pwd</b>
/user/home/gent/vsc400/vsc40000
$ <b>echo $HOME</b>
/user/home/gent/vsc400/vsc40000
</code></pre>

!!! tip
For job scripts, use `set -e -u` to avoid using empty variables accidentally.

Expand Down

0 comments on commit a540e97

Please sign in to comment.