[Top][All Lists]

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

shell-command misinterprets multi-line conditional and

From: Kevin Rodgers
Subject: shell-command misinterprets multi-line conditional and
Date: Fri, 21 Jun 2002 12:44:28 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

shell-command misinterprets a multi-line conditional and command as a background

M-! echo foo && C-q C-j echo bar

executes "echo foo &", which displays "foo\n" in *Async Shell Command*
(instead of "echo foo &&\necho bar", which should display "foo\nbar\n"
in *Shell Command Output*).  The problem is this regexp in simple.el:

          (if (string-match "[ \t]*&[ \t]*$" command)
              ;; Command ending with ampersand means asynchronous.

I think "$" should instead be "\\'", to match the end of the command.

Kevin Rodgers <address@hidden>

reply via email to

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