2018-01-24 09:43 ACDT

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000590Other Unix PortBugpublic2013-12-24 18:23
ReporterLewisR 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
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.
Attached Files

-Relationships
+Relationships

-Notes

~0002596

psmedley (administrator)

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

~0002598

LewisR (developer)

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

~0002599

psmedley (administrator)

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

~0002600

LewisR (developer)

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

-Issue History
Date Modified Username Field Change
2013-12-22 10:22 LewisR New Issue
2013-12-22 18:55 psmedley Note Added: 0002596
2013-12-24 17:11 LewisR Note Added: 0002598
2013-12-24 18:06 psmedley Note Added: 0002599
2013-12-24 18:23 LewisR Note Added: 0002600
+Issue History