tech-userlevel archive

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

Re: hiding sh stderr



On Sun, May 13, 2018 at 7:04 PM <coypu%sdf.org@localhost> wrote:

> what's the way to do this? I forgot and didn't re-find the
> conversation.

> $ nonexistent 2>/dev/null
> nonexistent: not found

> (I'd like to apply PR 52684 but this is making it annoying)

Are you sure? bash and mksh do the right thing.

$ nonexistent 2>/dev/null

$

Would the following work:

sh -c nonexistent 2>/dev/null

?

-- 
Benny


Home | Main Index | Thread Index | Old Index