public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: walt <w41ter@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: [OT] shell ouput which file descriptor
Date: Fri, 09 Apr 2010 14:59:39 -0700	[thread overview]
Message-ID: <hpo80p$qo1$1@dough.gmane.org> (raw)
In-Reply-To: <878w8wvekz.fsf@newsguy.com>

On 04/09/2010 08:19 AM, Harry Putnam wrote:
> This is not a question about cvs... its only used for example.
>
> I'm puzzled about a change in what I see when I run
>     cvs -n update 2>  /dev/null
>
> I've apparently lost the ability to remove stder from output.
>
> I used that command to trim out file descriptor 2 which used to leave
> a list of any changed files in the repo on the console, for a very
> long time.
>
>
> Suddenly there is no difference with:
>
>        cvs -n update 2>  /dev/null
>           cvs -n update
>
> The stuff on stderr still shows in the ouput either way.
>
> Further;
>    cvs -n update 2>er  (redirect stder to ./er)
>
> Doesn't put anything in ./er
>
> However cvs -n update 1>out   (redirect stdout to ./out)
>
> Does catch the output I'm after and leave out stderr. (as one would
> expect)
>
> So, again, apparently I've lost the ability to trim out stderr with a
> redirect to /dev/null (cvs -n update 2>  /dev/null)
>
> -------        ---------       ---=---       ---------      --------
>
> The only thing I've been tinkering with is evaluating the
> /etc/DIR_COLORS file.  I switched from evaluating a custom version to
> evaluating the default version.

I have no helpful advice, but I would try a couple of simple experiments:

I have this in my home directory because I'm color blind:
-rw-r--r--  1 wa1ter users       0 2007-08-27 18:29 .dir_colors

$cat nonexistantfile
cat: nonexistantfile: No such file or directory

$cat nonexistantfile 2> /tmp/testfile
$

$cat /tmp/testfile
cat: nonexistantfile: No such file or directory

Are you running cvs as root, or user, or ...?






  reply	other threads:[~2010-04-09 22:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-09 15:19 [gentoo-user] [OT] shell ouput which file descriptor Harry Putnam
2010-04-09 21:59 ` walt [this message]
2010-04-10 15:11   ` [gentoo-user] " Harry Putnam
2010-04-10 16:17     ` Harry Putnam
2010-04-11  6:40       ` Amit Dor-Shifer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hpo80p$qo1$1@dough.gmane.org' \
    --to=w41ter@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox