bug-bash
[Top][All Lists]
Advanced

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

|& in bash?


From: John Caruso
Subject: |& in bash?
Date: Thu, 17 Jan 2013 18:01:25 +0000 (UTC)
User-agent: slrn/0.9.7.4 (Win32)

One feature of other shells (e.g. zsh and tcsh) I'd really love to have
in bash is "|&", which redirects both stdout and stderr--basically just
a shortcut for "2>&1 |".  Has this ever been considered for bash?

It may not seem like much of a difference, but it's saved me an enormous
numbers of keystrokes over the years.  There's nothing more frustrating
in bash than getting to (or worse, just past) "|" and realizing I need
to redirect stderr as well as stdout, then cursoring back and executing
a keyboard-acrobatic "2>&1" for the zillionth time....

- John


reply via email to

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