[Bug 2760] New: cd Command With No Arguments

bugzilla-daemon at bugzilla.mindrot.org
Tue, 15 Aug 2017 18:19:52 -0000

Bug ID: 2760
           Summary: cd Command With No Arguments
           Product: Portable OpenSSH
           Version: 7.5p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sftp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: skerbsf at gmail.com

This is a usability issue that is debatable.  The sftp client currently
returns an error when no arguments are given.  It appears that the
server does not even get involved.

> sftp kona3
Connecting to kona3...
Password:
sftp> cd
You must specify a path after a cd command.

Personally, I believe that the client should change into the remote
home directory when cd with zero arguments is typed.  This would mimic
the behavior users expect/are used to on UNIX filesystems/utilities.
Of course, I am new here and have different expectations, but this does
seem like a usability issue IMO.  Thanks.