View Issue Details

IDProjectCategoryView StatusLast Update
0000590Other Unix PortBugpublic2018-10-16 03:01
ReporterLewisR Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Summary0000590: ncFTP 3.2.5 not case insensitive for path completion
DescriptionStill not there yet, Paul (just tested ncftp-3.2.5-os2-20131222.zip).

Now, all tab completions for remote directories are up-cased, but not completed (one issue). Local paths are still case-sensitive.
Steps To ReproduceStart ncFTP.
Connect to remote FTP host.
Issue cd command with a beginning letter, and hit <tab>.

Result:

Single letter is up-cased, and cursor moved one space to the right for the next letter (or <tab>), even when common lower-case characters exist.

Expected:

Common characters should be echoed, following the case first entered by the user.
Additional InformationLocal files/directories: J:\DOWNLOAD J:\DownloadSetup.exe

ncftp /staff/archive > lcd j:/D <tab>
    DELETE DOWNLOAD
    devel DownloadSetup.exe
ncftp /staff/archive > lcd j:/DO (lower-case "o" typed; "O" echoed) <tab>
    DOWNLOAD DownloadSetup.exe

(did not detect that the latter was a file and not a directory; possibly due to no *nix flags on local OS/2 filesystem)

ncftp /staff/archive > lcd j:/DOWNLOAD <tab>
    DOWNLOAD DownloadSetup.exe

Remote files/directories: /staff/archive/o*

ncftp /staff/archive > ls o*
osCommerce/ Ontrack/ OS2V234.EXE OSINMRQA.TXT OSNTINST.TXT
OBJ_231.EXE OpenMotif/ OSINBDRB.TXT OSINNLSP.TXT OSOTTDBT.TXT
OBJSCN.ZIP OpenOffice/ OSINHDLT.TXT OSINUP22.TXT OSWPPRDT.TXT
Odin/ Os2/ OSINHOEM.TXT OSINW4RS.TXT OSWPTRAY.TXT
OEM2FIX.ZIP Osicom/ OSINLOGF.TXT OSMKNETC.TXT
OMNI12.ZIP Ositis/ OSINMMCD.TXT OSMKWILN.TXT

ncftp /staff/archive > cd O <tab>
    Odin OpenMotif Os2 Ositis
    Ontrack OpenOffice Osicom
ncftp /staff/archive > cd Op <tab>
ncftp /staff/archive > cd Open ("en" properly appended; waiting for <tab>)
ncftp /staff/archive > cd Openm <tab>
ncftp /staff/archive > cd OpenMotif/ ("M" properly up-cased; path completed)
CWD OK
ncftp /staff/archive/OpenMotif >

However:

ncftp /staff/archive > cd o <tab> (lowercase entry should produce listing)
ncftp /staff/archive > cd osCommerce/ (but instead produces case-sensitive path)

Tough one!

Also related: "\" in local paths are apparently escaped, as completions do not work with them.
TagsNo tags attached.

Activities

psmedley

2013-12-22 08:25

administrator   ~0002596

http://smedley.id.au/tmp/ncftp-3.2.5-os2-20131222b.zip seems to work for local directories

LewisR

2013-12-24 06:41

developer   ~0002598

Seems to work...as in...?

Backslashes are still escaped:

ncftp> lls
4OS2/ Exceptq/ FM2/ PDumpCtl/
ncftp> lcd \

: No such file or directory

lpwd was C:\TOOLS.

Local files/directories: J:\DOWNLOAD J:\DownloadSetup.exe

ncftp /staff/archive > lcd j:/D <tab><tab>
    DELETE DOWNLOAD
    devel DownloadSetup.exe
ncftp /staff/archive > lcd j:/DO (lower-case "o" typed; "O" echoed) <tab><tab>
    DOWNLOAD DownloadSetup.exe

Remote directories:

ncftp /staff/archive > ls o*
osCommerce/ Ontrack/ OS2V234.EXE OSINMRQA.TXT OSNTINST.TXT
OBJ_231.EXE OpenMotif/ OSINBDRB.TXT OSINNLSP.TXT OSOTTDBT.TXT
OBJSCN.ZIP OpenOffice/ OSINHDLT.TXT OSINUP22.TXT OSWPPRDT.TXT
Odin/ Os2/ OSINHOEM.TXT OSINW4RS.TXT OSWPTRAY.TXT
OEM2FIX.ZIP Osicom/ OSINLOGF.TXT OSMKNETC.TXT
OMNI12.ZIP Ositis/ OSINMMCD.TXT OSMKWILN.TXT
ncftp /staff/archive > cd O <tab>
    Odin OpenMotif Os2 Ositis
    Ontrack OpenOffice Osicom
ncftp /staff/archive > cd Open <tab>
    OpenMotif OpenOffice
ncftp /staff/archive > cd Openm <tab>
    (no matches)

Also, backspacing over the command line and starting again:

ncftp /staff/archive > cd o <tab>
ncftp /staff/archive > cd osCommerce/ (auto-completed, but should not have been)

ncftp /staff/archive > cd osi <tab> (should have matched "Osicom"; no response)
ncftp /staff/archive > cd osi <tab><tab> (should have matched "Osicom")
    (no matches)

but:

ncftp /staff/archive > cd Osi <tab>
    Osicom Ositis

psmedley

2013-12-24 07:36

administrator   ~0002599

Mea Culpa - I didn't test paths with driveletters or \ or /

only examples like:
cd LIBC
where libc-0.6 also existed...

Will test more after Christmas. On my 2nd beer waiting for guests to arrive :)

LewisR

2013-12-24 07:53

developer   ~0002600

LOL! Enjoy. This can all wait, believe me. The app is 100% more functional now than it was before, and I can't thank you enough for that, Paul.

Cheers

LewisR

2018-10-16 03:01

developer   ~0003207

Maintenance of this port seems to have moved to Netlabs, where the current version is 3.2.6. This issue is no longer relevant.

Issue History

Date Modified Username Field Change
2013-12-21 23:52 LewisR New Issue
2013-12-22 08:25 psmedley Note Added: 0002596
2013-12-24 06:41 LewisR Note Added: 0002598
2013-12-24 07:36 psmedley Note Added: 0002599
2013-12-24 07:53 LewisR Note Added: 0002600
2018-10-16 03:01 LewisR Note Added: 0003207
2018-10-16 03:01 LewisR Status new => closed