Bug 2307 - tab completion of filenames with spaces
Summary: tab completion of filenames with spaces
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp (show other bugs)
Version: 6.7p1
Hardware: Other OpenBSD
: P5 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-06 13:02 AEDT by Anthony J. Bentley
Modified: 2014-11-06 13:02 AEDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony J. Bentley 2014-11-06 13:02:55 AEDT
Using OpenBSD -current.

sftp> mkdir foo\ bar
sftp> cd foo\ ^I

If there are any files in the current directory, but none that would match foo\ *, this tab completes as if the filename were empty.

If there are no other files in the current directory, pressing tab has no effect.

In both cases it should tab complete to "foo\ bar/".


Another possibly related inconsistency:

sftp> mkdir foo\ bar foo\ baz

After typing "cd foo^I", the prompt prints both alternatives and completes to "cd foo\ ba". If you type "cd foo\ ^I", the prompt prints both alternatives but leaves the input string as "cd foo\ ".