Say I run the following on /some/path
:
for x in foo/*; do
print $x
done
Are there any parameters I can use to tell Zsh to print, not just the filename, but the full absolute path to $x
? (without explicitly hard-coding /some/path
in the print
statement.
Best Answer
Or:
Though in this case:
is enough.
:A
expands symbolic links. You can also use:a
which doesn't.