Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: delay argument interpretation
- X-seq: zsh-users 960
- From: Andrew Main <zefram@xxxxxxxxx>
- To: lew@xxxxxxxxxxxxxxxxxx (Paul Lew)
- Subject: Re: delay argument interpretation
- Date: Mon, 21 Jul 1997 17:43:02 +0100 (BST)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <9707211605.AA17539@xxxxxxxxxxxxxxxxxx> from "Paul Lew" at Jul 21, 97 12:05:12 pm
function ask {
local yon
echo -n - >&2 "$1? [y/n]: "
read yon
[[ "$yon" == [yY]* ]] && eval "$1"
}
for i in *.c; do
ask 'diff =(rmcmt old/$i) =(rmcmt $i) # $i = '$i
done
There are other obvious variations.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author