delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/10/13:11:00

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: Mon, 10 Jun 2002 18:18:58 +0200
From: Mathias Gygax <mg AT trash DOT net>
To: "CygWin Users' List" <cygwin AT cygwin DOT com>
Subject: Re: running shell scripts
Message-ID: <20020610161858.GB15580@chiba.dyndns.org>
Mail-Followup-To: CygWin Users' List <cygwin AT cygwin DOT com>
References: <076e01c21059$1cfd6ee0$0200a8c0 AT weiss> <20020610134334 DOT GC18671 AT chiba DOT dyndns DOT org> <20020610093455 DOT A19207 AT reliant DOT immure DOT com> <20020610154317 DOT GE18671 AT chiba DOT dyndns DOT org> <20020610163645 DOT GJ12375 AT justpickone DOT org>
Mime-Version: 1.0
In-Reply-To: <20020610163645.GJ12375@justpickone.org>
User-Agent: Mutt/1.3.28i

On Mon, Jun 10, 2002 at 11:36:46AM -0500, David T-G wrote:
> % . someprogram
> 
> Well, yes, but be careful about that, because you're then running the
> script in the context of your shell instead of a subshell.  Any env vars
> you change will stay changed, and if your shell ends with an exit then
> your window will happily close.

well, what about

% (. someprogram)

:-D

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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