Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Quoting =(command)
- X-seq: zsh-workers 22387
- From: "A. Wik" <aw@xxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Quoting =(command)
- Date: Sun, 26 Mar 2006 16:37:56 +0000 (GMT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
How do I quote the =(<commands>) syntax that returns a the
name of a temporary file containing the output of <commands>?
Example: star is an improved tar program that can take a list of
files to archive through the =<list> command-line parameter - in
this case, the list is to be generated by the find program:
# star -cv f=etc-bak.tar -C / list==(cd / ; find ./etc -newer /tmp/mtime.ref)
zsh: parse error near `)'
I briefly thought I had found a solution:
# echo $(echo =(cd / ; find ./etc -newer /tmp/mtime.ref))
/tmp/zshonheGz
However:
# cat $(echo =(cd / ; find ./etc -newer /tmp/mtime.ref))
cat: /tmp/zshioLLt3: No such file or directory
-aw
Messages sorted by:
Reverse Date,
Date,
Thread,
Author