[Pidgin] #7072: New twist of "unknown command" error

Pidgin trac at pidgin.im
Sat Sep 13 18:05:23 EDT 2008


#7072: New twist of "unknown command" error
------------------+---------------------------------------------------------
Reporter:  andy   |        Type:  defect               
  Status:  new    |   Component:  pidgin (gtk)         
 Version:  2.5.1  |    Keywords:  irc "unknown command"
------------------+---------------------------------------------------------
 I know that IRC /commands have been discussed before, but here I ran into
 something that is related but not quite, so...

 We use pidgin for remote debugging of Unix related stuff, so we need to
 paste real Unix commands.  Problem is, if a command has no parameters,
 like

 {{{
 /bin/ls
 }}}

 it is transferred correctly.  If it does, something funny is happening.
 Here are some examples:
 {{{
 /bin/ls          # works fine
 /bin/ls -l       # unknown command
 /bin/ls /root    # works fine
 /bin/ls root     # unknown command
 /bin/ls -l /root # works fine
 /bin/ls -l root  # unknown command
 }}}
 I am sure this is not how this was intended to work.

 If I may suggest the fix, I would say the algorithm for "try this as a
 command" should be triggered _only_ if the first sequence of non-blanc
 characters (in my examples, `/bin/ls' starts with a slash (/) and contains
 exactly one slash.  At the very least, this will eliminate all
 interference with Unix commands, since no Unix command lives under /.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/7072>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list