From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1O0qrE-0006Zy-Mq for garchives@archives.gentoo.org; Sun, 11 Apr 2010 06:41:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57E32E05F5; Sun, 11 Apr 2010 06:40:57 +0000 (UTC) Received: from mail.oversi.com (oversrv1.oversi.com [209.88.189.2]) by pigeon.gentoo.org (Postfix) with ESMTP id 18C5FE05F5 for ; Sun, 11 Apr 2010 06:40:57 +0000 (UTC) Received: from [10.2.2.28] (unknown [10.2.2.28]) by mail.oversi.com (Postfix) with ESMTPA id 41C3E4B0121 for ; Sun, 11 Apr 2010 09:40:56 +0300 (IDT) Message-ID: <4BC16EF7.9030608@oversi.com> Date: Sun, 11 Apr 2010 09:40:55 +0300 From: Amit Dor-Shifer User-Agent: Thunderbird 2.0.0.23 (X11/20090812) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: [OT] shell ouput which file descriptor References: <878w8wvekz.fsf@newsguy.com> <87d3y71gwb.fsf@newsguy.com> <87tyrjz3hd.fsf@newsguy.com> In-Reply-To: <87tyrjz3hd.fsf@newsguy.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: d2c4c108-31f8-497b-8851-da8aca473bf1 X-Archives-Hash: 0ea506da86407dae97c9af2a16e5b8df permission issue? any EACCES in strace output? Amit Harry Putnam wrote: > Harry Putnam writes: > > >>> $cat /tmp/testfile >>> cat: nonexistantfile: No such file or directory >>> >> Thanks... >> >> >>> Are you running cvs as root, or user, or ...? >>> >> I was running cvs as user, and now trying your tests... it appears the >> trouble has stopped... doesn't occur now in cvs cmds either. >> >> There was a reboot in between, so may never now what was going on. >> >> Prior to rebooting I had tried to get a fresh env by ssh >> user@localhost from an xterm. Hoping to rule out some oddball env >> problem, but the file descriptor problem persisted. However it has >> apparently not survived a reboot. >> > > Yikes... more mysterious than I reported above. > > I see now that I get the goofy acting file descriptors when I'm in > console mode, but not in X. > > And it appears only to happen in cvs commands, but again, not in X. > > My sequence: > > Reboot just now. > > At console login: > > login and call cvs command: > > cvs -n update /usr/local/common/base 2>er > > I see 83 lines scroll by. > > cat er > cat: er: No such file or directory > > Nothing has been redirected. > > cvs -n update /usr/local/common/base 2>er|wc -l > > I still see 83 lines but wc -l reports 0 > (as it should) > > So somehow the redirect is ignored and stderr goes to console > anyway. > > Trying your test > cat none 2>er > > cat er > cat: none: No such file or directory > > So stderr is doing what it is supposed to do with cat but not a cvs > command. > ------- --------- ---=--- --------- -------- > Now startx and from an xterm: > cvs -n update /usr/local/common/base 2>er > just like expected > > Follow with: > cat er|wc -l > 83 > (83 lines of ouput were captured with 2>er) > > So this is more puzzling than ever. Weird phenomena in console that > stops when in X. > > > >