mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 14:56:54 +02:00
Reword pwd comments (#2402)
Getting is redundant. Observe, not observer.
This commit is contained in:
@@ -96,10 +96,10 @@ echo "Script's arguments separated into different variables: $1 $2..."
|
|||||||
# Now that we know how to echo and use variables,
|
# Now that we know how to echo and use variables,
|
||||||
# let's learn some of the other basics of bash!
|
# 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".
|
# `pwd` stands for "print working directory".
|
||||||
# We can also use the builtin variable `$PWD`.
|
# 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)" # execs `pwd` and interpolates output
|
||||||
echo "I'm in $PWD" # interpolates the variable
|
echo "I'm in $PWD" # interpolates the variable
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user