Sebastian Luque <[EMAIL PROTECTED]> wrote:
> Hi,

> I was trying to tar.gz some files I marked in dired with:

> ! tar -czvf filename.tar.gz RET

> but only the first file makes it into the archive, whereas the same
> command invoked from a shell (tar -czvf filename.tar.gz file1 file2 file3
> ...) does, of course, archive all the files.  What might the problem be?

Never mind, some patience and checking the first source of info (the
manual) would have saved my post:


,-----[ (info "(emacs)Shell Commands in Dired") lines: 682 - 693 ]
|    * If you use `*' in the shell command, then it runs just once, with
|      the list of file names substituted for the `*'.  The order of file
|      names is the order of appearance in the Dired buffer.
| 
|      Thus, `! tar cf foo.tar * <RET>' runs `tar' on the entire list of
|      file names, putting them into one tar file `foo.tar'.
| 
|    * If the command string doesn't contain `*', then it runs once _for
|      each file_, with the file name added at the end.
| 
|      For example, `! uudecode <RET>' runs `uudecode' on each file.
`-----



-- 
Sebastian P. Luque



_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to