delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/02/21:12:34

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
Message-ID: <3CAA6462.3020703@ece.gatech.edu>
Date: Tue, 02 Apr 2002 21:09:38 -0500
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Alan Dobkin <Alan AT ADobkin DOT Net>
CC: Cygwin <Cygwin AT cygwin DOT com>
Subject: Re: NcFTP Feature Request for "getline" (fwd)
References: <2502216266.1017765235@[192.168.70.5]>

I can't reproduce this the way you see it.  OTOH, I understand your 
problem, and the short answer is:  use " character.

ncftp> open "R<tab> U<tab>

should do what you want.

On cygwin, using rxvt (TERM=rxvt) or dosbox (TERM=cygwin), I get:

ncftp> open <TAB>
neuro    rcn
ncftp> open

two tabs, and I get

ncftp> open <TAB> <TAB>
neuro    rcn
ncftp> open  (e.g. the second tab is interpreted here)
neuro    rcn
ncftp> open

likewise, when I do something as (IMO) silly as having multi-word 
bookmark names, in both environments I get

ncftp> open <TAB>
neuro one  neuro two  rcn  (lists all three bkmks)
ncftp> open n<TAB>
neuro one  neuro two       (lists two bookmarks, autocompletes 'euro '
ncftp> open neuro<TAB>
neuro one  neuro two  rcn  (thinks that 'open neuro ' is two words, and
                             tries to autocomplete an entirely new
                             word -- so it re-lists all three bkmks)

If I try to help, by typing the 'o' for 'neuro one', it doesn't help -- 
it tries to match on words beginning with 'o' and since I have no bkmks 
that begin with 'o' -- no match.

ncftp> open neuro o<TAB>
ncftp> open neuro o

This is The Right Thing To Do, IMO.  Very unixy.  Now, if I do THIS:

ncftp> open "neuro <TAB>
neuro one    neuro two

Then, I help by adding an 'o':

ncftp> open "neuro o<TAB>  (it autocompletes!  'ne"')

ncftp> open "neuro one"

Again, The Right Thing To Do.  Remember, cygwin ain't windows.

--Chuck



Alan Dobkin wrote:

> I am resending the attached request as it still applies 
> to NcFTP 3.1.3.  I am copying the Cygwin list, because 
> I've noticed a related bug in the current Cygwin version.
> 
> Consider an example with only the following two bookmarks:
> 
> RedHat Linux   --> FTP.RedHat.Com
> RedHat Updates --> Updates.RedHat.Com
> 
> With the non-Cygwin Win32 version, tab completion 
> displays the bookmark list with only the second words:
> 
> ncftp> open <TAB><TAB>
>     Linux    Updates
> 
> However, with the Cygwin version, tab completion repeats 
> the first word each time without displaying the list:
> 
> ncftp> open <TAB>
> ncftp> open RedHat <TAB>
> ncftp> open RedHat RedHat <TAB>
> ncftp> open RedHat RedHat RedHat <TAB>
> 
> Unfortunately, I am not able to contribute any patches 
> myself, but hopefully this will not be a difficult fix 
> for someone who is already familiar with the source code.
> 
> Thanks,
> Alan
> 
> 
> ------------------------------------------------------------------------
> 
> Subject:
> 
> NcFTP Feature Request for "getline"
> From:
> 
> Alan Dobkin <Alan AT ADobkin DOT Net>
> Date:
> 
> Sun, 04 Nov 2001 20:14:09 -0500
> To:
> 
> NcFTP <NcFTP AT NcFTP DOT Com>
> 
> 
> Please consider the following enhancement to "getline" tab 
> completion.  When using the open command with tab to list 
> the matching bookmarks, getline should enclose the string 
> in quotes if it contains spaces.  Consider this example:
> 
> ncftp> open <TAB>RedHat Linux
> Resolving RedHat...
> 
> Unknown host "RedHat".
> ncftp> open "RedHat Linux" (quotes inserted manually)
> Resolving FTP.RedHat.Com...
> Connecting to 63.240.14.63...
> 
> Red Hat FTP server ready. All transfers are logged.
> Logging in...
> 
> Login successful. Have fun.
> 
> Automatically inserting quotes like this appears to be 
> standard behavior in most UNIX shells and Windows 2000.
> 
> Thanks,
> Alan
> 
> 
> 
> ------------------------------------------------------------------------
> 
> --
> 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/
> 



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