all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#10598: 24.0.92; run dired-do-async-shell-command on multiple files individually
@ 2012-01-25 10:17 Roland Winkler
  2012-01-25 11:14 ` Juri Linkov
  2012-01-25 22:48 ` Jérémy Compostella
  0 siblings, 2 replies; 13+ messages in thread
From: Roland Winkler @ 2012-01-25 10:17 UTC (permalink / raw)
  To: 10598

Within dired, I want to run a shell command asynchronously on
multiple files individually. Say, most specifically I tried to
watch the postscript files foo.ps and bar.ps with gv.

So I mark foo.ps and bar.ps in the dired buffer and hit
& gv ?

In the buffer *Async Shell Command* this gives me the error message

/bin/bash: -c: line 0: syntax error near unexpected token `;'
/bin/bash: -c: line 0: `gv foo.ps &;gv bar.ps'

I get the same error message with the command dired-do-shell-command using
! gv ? &

I am not the most experienced bash expert. But it seems that bash
doesn't like the combination `&;'. Note also that there is no `&'
for `gv bar.ps'.

In a tty
$ gv foo.ps & gv bar.ps &
works fine for me (giving me what I expect to get within dired).

Am I misunderstanding the docstrings of dired-do-shell-command and
dired-do-async-shell-command (which are a bit confusing for me
concerning how to run a shell command on multiple files) or is there
a bug in the code?


In GNU Emacs 24.0.92.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2011-12-14 on regnitz
Windowing system distributor `The X.Org Foundation', version 11.0.10706000





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-07-17 18:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-25 10:17 bug#10598: 24.0.92; run dired-do-async-shell-command on multiple files individually Roland Winkler
2012-01-25 11:14 ` Juri Linkov
2012-01-25 11:47   ` Roland Winkler
2012-07-12  9:01     ` Juri Linkov
2012-07-12 10:26       ` Roland Winkler
2012-07-13  8:30         ` Juri Linkov
2012-07-13  9:28           ` Roland Winkler
2012-07-14  9:31             ` Juri Linkov
2012-07-15  7:51               ` Roland Winkler
2012-07-15  8:29                 ` Juri Linkov
2012-07-17  7:17                   ` Roland Winkler
2012-07-17 18:41                     ` Juri Linkov
2012-01-25 22:48 ` Jérémy Compostella

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.