Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion bug with `pwd`?



Andrej Borsenkow wrote:
>What is the correct way to do the above? (There are several commands which
>insists on having the absolute pathname).

Use "$PWD" or "~+" instead of "`pwd`".  It is possible to perform pathname
completion leaving pathname expansions and parameter expansions in the
word, where command substitutions must be expanded.  It also saves a
process (and some time) and avoids the ambiguity of command substitution.

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author