delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/06/23/01:53:49

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <BAY111-W23AAE475DD0E06EE36FE16EAA60@phx.gbl>
From: gene golub <gene_golub AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: vi command line editing question.
Date: Mon, 23 Jun 2008 01:52:58 -0400
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m5N5rYpj004833


Hi folks
 
I am using Korn Shell type editing of the command line. 
Here is an example:
 
I run isql command to ms sql server:
 
set -o vi
isql -E -S. <select @@servername
>go
!
 
It runs fine. But when I try to repeat an execution of this command by going to history, finding that command and pressing 'v' for command vi edditing, I get only first line:
 
osql -E -S . 
 
As for commands which were sourced to db server (select @@servername), they are not displayed and I have to type them again.
If I had used any Korn Shell port for Windows (MKS Tools), I would see next:
osql -E -S . <<

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