From 527eab7108f4b5587f4a4afd9dad53ef0de2c565 Mon Sep 17 00:00:00 2001 From: Isaac Virshup Date: Fri, 16 Sep 2016 17:53:18 +1000 Subject: [bash/en] Remove link unavailable resource (#2372) (#2373) Link pointed to a book which was not released. Fixes #2372. --- bash.html.markdown | 2 -- 1 file changed, 2 deletions(-) (limited to 'bash.html.markdown') diff --git a/bash.html.markdown b/bash.html.markdown index b1a14bdb..c5260915 100644 --- a/bash.html.markdown +++ b/bash.html.markdown @@ -23,8 +23,6 @@ Nearly all examples below can be a part of a shell script or executed directly i [Read more here.](http://www.gnu.org/software/bash/manual/bashref.html) -Another recommened link: [The Command Line Crash Course](http://cli.learncodethehardway.org/book/) - ```bash #!/bin/bash # First line of the script is shebang which tells the system how to execute -- cgit v1.2.3 From 81975893a7c1ac2dbc4d0db0c16864d751f6c845 Mon Sep 17 00:00:00 2001 From: Tim Heaney Date: Sun, 2 Oct 2016 13:16:12 -0400 Subject: Reword pwd comments (#2402) Getting is redundant. Observe, not observer. --- bash.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash.html.markdown') diff --git a/bash.html.markdown b/bash.html.markdown index c5260915..7b7a3eef 100644 --- a/bash.html.markdown +++ b/bash.html.markdown @@ -96,10 +96,10 @@ echo "Script's arguments separated into different variables: $1 $2..." # Now that we know how to echo and use variables, # let's learn some of the other basics of bash! -# Getting our current directory is available through the command `pwd`. +# Our current directory is available through the command `pwd`. # `pwd` stands for "print working directory". # We can also use the builtin variable `$PWD`. -# Observer that the following are equivalent: +# Observe that the following are equivalent: echo "I'm in $(pwd)" # execs `pwd` and interpolates output echo "I'm in $PWD" # interpolates the variable -- cgit v1.2.3 From 9b2da0936507da307d2535f65a79a1161d4c2c11 Mon Sep 17 00:00:00 2001 From: Remigiusz Suwalski Date: Thu, 13 Oct 2016 08:25:44 +0200 Subject: Removed excessive dollar signs (#2447) There is no $ when one referencec the name of a variable as Bash is not PHP. --- bash.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash.html.markdown') 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: -- cgit v1.2.3