Re: [Fish-users] Unexpanded arguments?
On Mon, Dec 19, 2016 at 9:00 AM, Mike Meyerwrote: > Is it possible to get to the unexpanded arguments inside a function? It'd > be nice to do something like (from zsh): > No, it isn't. See https://github.com/fish-shell/fish-shell/issues/1511 -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/intel___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Unexpanded arguments?
Is it possible to get to the unexpanded arguments inside a function? It'd be nice to do something like (from zsh): function rm if contains $UNEXPANDED_ARGV '*' echo -n Are you sure you want to remove all files in (pwd)\? if string match -qr -- (read) '^[Yy]' return end command rm $argv end end -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/intel___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users