[Bug 1596] New: Option parser does not permit a double-quote character to occur in option values

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri May 8 06:36:22 EST 2009


https://bugzilla.mindrot.org/show_bug.cgi?id=1596

           Summary: Option parser does not permit a double-quote character
                    to occur in option values
           Product: Portable OpenSSH
           Version: 5.2p1
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: low-hanging-fruit
          Severity: normal
          Priority: P2
         Component: ssh
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: michael.j.fromberger at gmail.com


There is no apparent way to give the ssh command line tool an option
value, either on the command line or in the ssh_config file, which
includes a double-quote (") character (ASCII 34).  Neither doubling the
quotation mark nor escaping it with a backslash seem to work.  The
manual pages do not describe any other escape syntax.  Either an escape
mechanism should be added, or (if one already exists) the documentation
should be updated to describe it clearly.

Background:  On some systems (in my particular case, it's MacOS 10.5),
it is possible for a user's login name to contain a double-quotation
mark character.  There does not seem to be any way to provide a
username of this kind to the command line tool, either via the
configuration file or using the command-line "-o User=xxx" syntax.

If no escape mechanism exists for this case, I would recommend using
doubling to denote internal quotes.  This avoids the need to also quote
a separate escape character, and should not disturb existing
configuration files.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list