delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/05/14:25:10

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: Wed, 5 Jun 2002 14:24:52 -0400
From: Jon LaBadie <jcyg AT jgcomp DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: run batch w/o .bat?
Message-ID: <20020605182452.GA8377@butch.jgcomp.com>
Mail-Followup-To: Jon LaBadie <jcyg AT jgcomp DOT com>,
"'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
References: <C69F6A9E1E1F5A488C58B168F0875F4005BDA004 AT riv-exch1 DOT echostar DOT com>
Mime-Version: 1.0
In-Reply-To: <C69F6A9E1E1F5A488C58B168F0875F4005BDA004@riv-exch1.echostar.com>
User-Agent: Mutt/1.3.28i

On Wed, Jun 05, 2002 at 08:16:43AM -0600, Barnhart, Kevin wrote:
> Yes, I could see how that might be a problem.  But aren't the commands that
> I type in an open shell only available in that shell?  I.e. if I have two
> bash windows open, and I type a command in one, then I can't access it
> (using !! or otherwise) from the other--or at least I haven't been able to.
> That aside, isn't there a way to use the 'fc' command to grab the last
> command from the history and then edit it?

Not sure of bash/cygwin but under Solaris and ksh93 I can get to commands
executed in one shell from another.  Also in the same system I can use fc
in a shell script to access the history list.

Under bash on that Solaris system two bash's say they are using the same
history file, but the recent commands are not immediately available to
a second bash.  Probably buffered in the respective programs and the
history file will be updated later.  Also, fc in a bash script gave me
no output.

Before anyone asks, I'm not near a cygwin system at the moment.

-- 
Jon H. LaBadie                  jcyg AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

--
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