help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pushd doesn't play nicely with spaces


From: Greg Wooledge
Subject: Re: pushd doesn't play nicely with spaces
Date: Sat, 21 Jan 2023 08:33:23 -0500

On Sat, Jan 21, 2023 at 06:24:10AM -0500, Douglas Lewan wrote:
> The bash built-in pushd doesn't seem to be able to handle spaces well in
> directory names. It goes into an infinite loop with lots of errors. (Perhaps
> not infinite, but I'm never patient enough to wait.)
> 
> A common circumstance is when I receive archives from my friends who use
> Windows. Such archives very often have New Folder as the top folder, and
> pushd never handles that nicely.

unicorn:~$ mkdir 'New Folder'
unicorn:~$ pushd 'New Folder'
~/New Folder ~
unicorn:~/New Folder$ popd
~
unicorn:~$ 

Can you show us how to reproduce your problem?  You might also wish to
echo "$BASH_VERSION".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]