summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorRemigiusz Suwalski <remigiusz.suwalski@gmail.com>2016-10-13 08:25:44 +0200
committerven <vendethiel@hotmail.fr>2016-10-13 08:25:44 +0200
commit9b2da0936507da307d2535f65a79a1161d4c2c11 (patch)
tree1147504af26ef022e0ecb72efa77c86c7cb7cba0 /bash.html.markdown
parent858171d7231035a286ae1b1e4aea39435dacb384 (diff)
Removed excessive dollar signs (#2447)
There is no $ when one referencec the name of a variable as Bash is not PHP.
Diffstat (limited to 'bash.html.markdown')
-rw-r--r--bash.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash.html.markdown b/bash.html.markdown
index 7b7a3eef..271ef62c 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -351,8 +351,8 @@ fgrep "foobar" file.txt
trap "rm $TEMP_FILE; exit" SIGHUP SIGINT SIGTERM
# `sudo` is used to perform commands as the superuser
-$NAME1=$(whoami)
-$NAME2=$(sudo whoami)
+NAME1=$(whoami)
+NAME2=$(sudo whoami)
echo "Was $NAME1, then became more powerful $NAME2"
# Read Bash shell builtins documentation with the bash 'help' builtin: