Ahh that makes sense:
"That will never change the current directory, since the popd is run in
a subshell."
So what's the possibility of adding -v option to popd and pushd???
-Pete
On Mon, Apr 17, 2017 at 1:33 PM, Chet Ramey wrote:
> On 4/17/17 2:05 PM, Pete Smith wrote:
>
> > Using an alia
Reproducer steps :
> PROMPT_COMMAND="history -a; history -c; history -n"
> history
Actual output :
2 history
Expected output:
All the older history items from bash history file should be re-read.
I am providing a test patch that resolves this issue.
--
--
Siteshwar Vashisht
diff --git
On 4/17/17 2:05 PM, Pete Smith wrote:
> Using an alias solution:
>
> popd | sed 's/\s/\n/g' | nl
>
> doesn't work, probably because they are shell built-ins.
That will never change the current directory, since the popd is run in
a subshell.
--
``The lyf so short, the craft so long to lerne.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
Am 17.04.2017 um 20:05 schrieb Pete Smith:
> The problem with: dirs, pushd, popd is that they output a single line of
> paths that's difficult to parse visually quickly, especially when there are
> many paths in the dir stack and the path
> nam
The problem with: dirs, pushd, popd is that they output a single line of
paths that's difficult to parse visually quickly, especially when there are
many paths in the dir stack and the path
names are long.
dirs offers a reasonable solution with the -v option
Unfortunately popd and pushd do NOT of