mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-09-25 22:09:00 +02:00
Removed excessive dollar signs (#2447)
There is no $ when one referencec the name of a variable as Bash is not PHP.
This commit is contained in:
@@ -351,8 +351,8 @@ fgrep "foobar" file.txt
|
|||||||
trap "rm $TEMP_FILE; exit" SIGHUP SIGINT SIGTERM
|
trap "rm $TEMP_FILE; exit" SIGHUP SIGINT SIGTERM
|
||||||
|
|
||||||
# `sudo` is used to perform commands as the superuser
|
# `sudo` is used to perform commands as the superuser
|
||||||
$NAME1=$(whoami)
|
NAME1=$(whoami)
|
||||||
$NAME2=$(sudo whoami)
|
NAME2=$(sudo whoami)
|
||||||
echo "Was $NAME1, then became more powerful $NAME2"
|
echo "Was $NAME1, then became more powerful $NAME2"
|
||||||
|
|
||||||
# Read Bash shell builtins documentation with the bash 'help' builtin:
|
# Read Bash shell builtins documentation with the bash 'help' builtin:
|
||||||
|
Reference in New Issue
Block a user