[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issus with popd and pushd
From: |
Reuti |
Subject: |
Re: Issus with popd and pushd |
Date: |
Mon, 17 Apr 2017 22:28:24 +0200 |
-----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
> 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.
It's a question whether it's a feature or a bug: if stdout is redirected for
it, the directory isn't changed any longer AFAICS.
- -- Reuti
> 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
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
iEYEARECAAYFAlj1JWgACgkQo/GbGkBRnRofagCfUNXHWBVDDYoKZUS73A5+YGkp
JP8An0NkPu2i5U0rI3tUcbrgXbB8sTKF
=8mly
-----END PGP SIGNATURE-----
- Issus with popd and pushd, Pete Smith, 2017/04/17
- Re: Issus with popd and pushd,
Reuti <=
- Re: Issus with popd and pushd, Chet Ramey, 2017/04/17
- Re: Issus with popd and pushd, Pete Smith, 2017/04/17
- Re: Issus with popd and pushd, Eduardo Bustamante, 2017/04/18
- Re: Issus with popd and pushd, Chet Ramey, 2017/04/18
- Re: Issus with popd and pushd, L A Walsh, 2017/04/18
- Re: Issus with popd and pushd, Chet Ramey, 2017/04/18
- Re: Issus with popd and pushd, Pete Smith, 2017/04/21
- Re: Issus with popd and pushd, Chet Ramey, 2017/04/21
- Re: Issus with popd and pushd, Chet Ramey, 2017/04/21
- Re: Issus with popd and pushd, Pete Smith, 2017/04/22