Skip to content

Commit a540e97

Browse files
committed
remove confusing empty variable example
1 parent 8fee50b commit a540e97

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mkdocs/docs/HPC/linux-tutorial/common_pitfalls.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@ A common pitfall is the (accidental) use of non-defined variables.
5454
Contrary to what you may expect, this does *not* result in error
5555
messages, but the variable is considered to be *empty* instead.
5656

57-
This may lead to surprising results, for example:
58-
<pre><code>$ <b>export WORKDIR=/tmp/test</b>
59-
$ <b>pwd</b>
60-
/user/home/gent/vsc400/vsc40000
61-
$ <b>echo $HOME</b>
62-
/user/home/gent/vsc400/vsc40000
63-
</code></pre>
64-
6557
!!! tip
6658
For job scripts, use `set -e -u` to avoid using empty variables accidentally.
6759

0 commit comments

Comments
 (0)