Mail Archives: cygwin/2002/04/02/21:12:34
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 -