rupa / z

z - jump around
Do What The F*ck You Want To Public License
16.39k stars 1.17k forks source link

`z -t` outputs to stderr #265

Open chrissound opened 5 years ago

chrissound commented 5 years ago

Which means I can't do something like z -t | head -n 5

srasku commented 5 years ago

Does this work? z -t 2>&1 | head -n 5

On Sun, Mar 17, 2019 at 22:25 Chris Stryczynski notifications@github.com wrote:

Which means I can't do something like z -t | head -n 5

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rupa/z/issues/265, or mute the thread https://github.com/notifications/unsubscribe-auth/AB9D7XPVubCWIE4REHdpIar76d9ZmJW0ks5vXyMsgaJpZM4b4-jM .

chrissound commented 5 years ago

Well yes but surely it should output to stdout in the first place?

rupa commented 5 years ago

-l is for this use case. z -lt to be specific. Or do you really want to cd and also pipe the internals garbage to something else?