Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: "'cygwin AT cygwin DOT com'" Subject: Re: run batch w/o .bat? Message-ID: <20020605182452.GA8377@butch.jgcomp.com> Mail-Followup-To: Jon LaBadie , "'cygwin AT cygwin DOT com'" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/