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

Re: Lack of sanitisation of I/O in pushd/popd



Joao Paulo <joaolrpaulo@xxxxxxxxx> writes:

> Hello,
>
> I am encountering some problems with the implementation of the pushd and
> popd. The spaces in directory paths should be sanitise so I can read them
> properly. This is if I have a folder named Google Drive in my home
> directory, I expect it to be `~/Google\ Drive` not `~/Google Drive`, this
> is causing me problems to read the data from the `popd -n` because there is
> no difference between that whitespace, and the whitespace used to print
> elements in the stack.

popd -n is not even documented, and more a sideeffect of the
implementation that it works.

You can list the stack with "dirs -p" linewise, or just access the
array $dirstack directly.

hth,
-- 
Leah Neukirchen  <leah@xxxxxxxx>  http://leah.zone



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