bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7166: browse-url truncates the given url after an '&'


From: Andreas Schwab
Subject: bug#7166: browse-url truncates the given url after an '&'
Date: Fri, 08 Oct 2010 19:24:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Glenn Morris <rgm@gnu.org> writes:

> I guess this might fix it:
>
> *** lisp/net/browse-url.el    2010-09-23 06:42:45 +0000
> --- lisp/net/browse-url.el    2010-10-07 18:28:31 +0000
> ***************
> *** 939,945 ****
>     (interactive (browse-url-interactive-arg "URL: "))
>     (call-process "/bin/sh" nil nil nil
>               "-c"
> !             (concat "nohup xdg-open " url
>                       ">/dev/null 2>&1 </dev/null")))
>   
>   ;;;###autoload
> --- 939,945 ----
>     (interactive (browse-url-interactive-arg "URL: "))
>     (call-process "/bin/sh" nil nil nil
>               "-c"
> !             (concat "nohup xdg-open " (shell-quote-argument url)
>                       ">/dev/null 2>&1 </dev/null")))
>   
>   ;;;###autoload

The use of /bin/sh is completely unnecessary.  The nil for infile and
buffer are already equivalent to the explicit redirections.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]