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 just use pwd -L as it is available on BSD, AIX, SCO and the great majority of GNU/Linux distributions.
Otherwise you could use perl 😉 perl -e 'use Cwd; print getcwd . "\n";'