Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Fwd: jobs -d &>/dev/null still produces output?
- X-seq: zsh-users 10927
- From: "Matt Wozniski" <godlygeek@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Fwd: jobs -d &>/dev/null still produces output?
- Date: Fri, 3 Nov 2006 14:11:22 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aho9jBL5qHGwGyNXMoSgzg5LvpoqEMY1qM4mJqaDiglKDHM/MiwQ6PAUNx2vfuqmxDvjnB+vP/qY/NImDVHhHnnmKej4OhyQBQcYDVxxdht5IH4PkGY85Tctwm8Md1MigOawqDleWb2Xw/8KiobWl5kEQHWtjNFMsuP7YDDn6Oo=
- In-reply-to: <17393e3e0611031107w6e44a205tb278a667a9882a8c@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <17393e3e0611031048j2c28e9b4w996c1690926d7b95@xxxxxxxxxxxxxx> <1C9AC870-9E00-4BC4-9B6E-C50B4134252E@xxxxxxxxx> <17393e3e0611031107w6e44a205tb278a667a9882a8c@xxxxxxxxxxxxxx>
- Reply-to: mjw@xxxxxxxxxx
Crap, I sent this to Michael instead of the group accidentally...
Sorry Michael!
'1>' or just '>' redirects STDOUT, '2>' redirects STDERR, and '&>'
redirects both. My test case should redirect both. Try getting rid of the
'2' in your example and it will still give the behavior that you
described. jobs is doing something special, and the source code just
confused me more. :)
~Matt
On 11/3/06, Michael Hernandez <sequethin@xxxxxxxxx> wrote:
On Nov 3, 2006, at 1:48 PM, Matt Wozniski wrote:
> I'm a bit confused by something zsh is doing.
>
> Test case:
>
> sleep 1000 &
> jobs -d &>/dev/null
>
> Why does this still produce output? Is there any way to redirect the
> line that's still appearing on screen? And what on earth is the
> 'shout' file descriptor tied to? :)
>
> Thanks!
>
> ~Matt
Could be that jobs is using STERR not just STDOUT
Try redirecting STDERR, for example
lskdjf 2&>/dev/null
Produces no output (it should say "command not found" or something
similar)
--
Mike
Messages sorted by:
Reverse Date,
Date,
Thread,
Author