all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Kevin Ryde <user42@zip.com.au>
Cc: 5771@debbugs.gnu.org
Subject: bug#5771: 23.1; compile command with cd to new dir
Date: Sun, 28 Mar 2010 15:53:58 -0400	[thread overview]
Message-ID: <87pr2omdd5.fsf@stupidchicken.com> (raw)
In-Reply-To: <874ok4kpfo.fsf@blah.blah>

>     (compile "mkdir /tmp/newdir;\n cd /tmp/newdir;\n echo hi")
>
> gets an emacs error
>
>     => /tmp/newdir/: no such directory
>
> and doesn't run the command.  I hoped that no matter what the command
> string contains that emacs would start it.

The problem was that compile had this faulty regexp test:

(string-match "^\\s *cd\\(?:\\s +\\(\\S +?\\)\\)?\\s *[;&\n]" command)

The `^' matches characters after newlines, which is not what's intended;
we want to match only the beginning of the string, with `\''.  I've
checked in a fix; thanks for the bug report.






  reply	other threads:[~2010-03-28 19:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25 22:27 bug#5771: 23.1; compile command with cd to new dir Kevin Ryde
2010-03-28 19:53 ` Chong Yidong [this message]
2010-03-31  0:14 ` Kevin Ryde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pr2omdd5.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=5771@debbugs.gnu.org \
    --cc=user42@zip.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.