Stéphane Glondu <st...@glondu.net> - Tue, 18 Aug 2009 09:23:03 +0200

>Hello,
>
>Michel Briand a écrit :
>> [...]
>> Error: Failed to send command: 500 command not parseable
>> 
>> [debug of a script]
>> ...
>> + /usr/bin/iceweasel -remote openurl(http://www.debian.org/,new-window)
>> [...]
>
>On my system (with iceweasel 3.5-1), this:
>
>  iceweasel -remote 'openurl(http://www.debian.org/,new-window)'
>
>works perfectly, whereas this:
>
>  iceweasel -remote 'openurl("http://www.debian.org/",new-window)'
>
>or any other attempt to quote a substring in the openurl call fails with
>the error you mention.
>
>How exactly do you call iceweasel? I mean, what do you type in the shell
>prompt? (before it does any expansion)
>
>
>Cheers,
>

Stéphane,

I've read the bug #289745:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=289745

There is already a discussion here about arguments. So I tried to
conform to conclusions expressed there :).

Since it's necessary to escape the () because of the shell, but the
browser won't accept arguments with "", this is tricky.

I've used strace to investigate this, to trace my shell script that
used to work (that because it used to work for year that I posted to
reopen the bug) :

$ strace -s 128 -o totolog2 -f sh -c "/usr/lib/iceweasel/firefox-bin -remote 
'openurl(http://www.debian.org,new-tab)'"
Error: Failed to send command: 500 command not parseable
$ grep exec totolog2
5728  execve("/bin/sh", ["sh", "-c", "/usr/lib/iceweasel/firefox-bin -remote 
'openurl(http://www.debian.org,new-tab)'"], [/* 57 vars */]) = 0
5728  set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f276b0, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0
5729  execve("/usr/lib/iceweasel/firefox-bin", 
["/usr/lib/iceweasel/firefox-bin", "-remote", 
"openurl(http://www.debian.org,new-tab)"], [/* 57 vars */]) = 0
5729  set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d778d0, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0
...
5729  write(2, "Error: Failed to send command: 500 command not parseable\n"..., 
57) = 57
...

You see: no " in argument to execve, just the string openurl....

Strange, isn't it ?

Cordialement,
Michel



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to