Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: delay argument interpretation



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