Quiz: How do you print the value of the $PWD shell variable in #Linux or #Unix? Choose one answer only.
awk 'BEGIN {print ENVIRON["PWD"]}'
3%
cat <<<"$PWD"
1.4%
echo "$PWD"
92.8%
printf "%s\n" "$PWD"
2.8%
Poll ended at .
@nixCraft I mean they all work, but 'echo "$PWD"' is the most direct and takes the least typing.
@ellestad @nixCraft pwd is a command that works everywhere I've tried it. Works at least in bash and ash.