man page shows wrong syntax for irc:// URLs

Bug #618515 reported by Daniel González Gasull
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xchat (Ubuntu)
In Progress
Low
Unassigned

Bug Description

Binary package hint: xchat

man xchat displays wrong information about how to open a irc:// URL. According to the man page it should be, e.g.:

xchat -e irc://irc.freenode.org:6667/xchat

but the correct syntax is

xchat -e --url=irc://irc.freenode.org:6667/xchat

Tags: patch
Revision history for this message
Daniel González Gasull (gasull) wrote :

Just for the sake of testing the error, the right URL above is irc://irc.freenode.net:8001/xchat

So, again. The syntax according to the man page:

xchat -e irc://irc.freenode.net:8001/xchat

The right syntax:

xchat -e --url=irc://irc.freenode.net:8001/xchat

Revision history for this message
Vallery Lancey (muscovy) wrote :

Both commands work fine for me (10.04). By right, do you mean the -e one opens in an existing window?

Revision history for this message
Daniel González Gasull (gasull) wrote :

The result for me when running

xchat -e irc://irc.freenode.net:8001/xchat

is that it opens xchat in a new instance and it doesn't open the channel #xchat.

Revision history for this message
Matt Fischer (mfisch) wrote :

Ditto what Daniel said. In order to get it in the same window -e --url is the proper syntax. I will write up a patch.

Changed in xchat (Ubuntu):
status: New → Confirmed
Vallery Lancey (muscovy)
Changed in xchat (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Matt Fischer (mfisch) wrote :

I've been thinking about this more and although I can certainly fix the manpage, I'm wondering if this is a bug in the software? Why would -e not work as expected without --url=?

Revision history for this message
Brian (lifeispain) wrote :

-e can also be used in conjunction with -c/--command, so -e does not in and of itself imply the param should be a url, hence the need for --url

Revision history for this message
Matt Fischer (mfisch) wrote :

I adjusted the manpage with the attached patch. I'm not 100% sure that I did the patch correctly, but it did apply cleanly for me with a dry-run done afterwards.

tags: added: patch
Matt Fischer (mfisch)
Changed in xchat (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.