Holy... My bad, thanks for the help. On Mon, Feb 19, 2018, 18:31 Mikael Magnusson wrote: > On Mon, Feb 19, 2018 at 7:22 PM, Joao Paulo wrote: > > Thanks for the tip, but the information of $dirstack is the same as the > > `popd -n` so, it is not sanitizing the output as well. > > > > I think the problem is with pushd not validating if the current folder as > > some space in the middle. > > Read the section about arrays in the manpage. > > -- > Mikael Magnusson >