delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/12/05:01:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 12 Sep 2003 11:00:39 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: rxvt hanging after latest cygwin update
Message-ID: <20030912090039.GC9981@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <003a01c37908$32b4b9f0$0133a8c0 AT tvfgamer>
Mime-Version: 1.0
In-Reply-To: <003a01c37908$32b4b9f0$0133a8c0@tvfgamer>
User-Agent: Mutt/1.4.1i

On Fri, Sep 12, 2003 at 10:29:19AM +0200, Thomas V. Fischer wrote:
> Hello all,
> 
> I figured out what was wrong.
> 
> It seems to be the statement 'exec 2>&1' that is no longer working.

$ cat foo.sh
#!/bin/bash
exec 0</dev/null
exec 1>~/.foobar
exec 2>&1
ls qwert foo.sh
$ bash --login -c "./foo.sh"
$ cat .foobar
ls: qwert: No such file or directory
foo.sh
$

Well...

Corinna


-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019