bug-bash
[Top][All Lists]
Advanced

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

Issus with popd and pushd


From: Pete Smith
Subject: Issus with popd and pushd
Date: Mon, 17 Apr 2017 11:05:50 -0700

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 offer this option.

Using an alias solution:

  popd | sed 's/\s/\n/g' | nl

doesn't work, probably because they are shell built-ins.

I'd recommend the addition of the -v option to popd and pushd, or a fix so that an alias like the one outline above, works.

Appreciate your comments and feedback on this.

-Pete

reply via email to

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