There is a syntactic sugar feature I have wanted for my shell since I first
started using one, and I'm wondering if it's possible in fish or anyone has
ideas for implementing it.
Basically, it would be really nice to be able to write an implicit for loop the
way one would use the wildcard operator.
For example, if I have in a folder the files:
sig1.asc
sig2.asc
I can match them all with *.asc. But if I pass that to gpg, like:
gpg --verify *.asc
That expands to:
gpg --verify sig1.asc sig2.asc
Which fails. The solution is that I use a for loop, like so:
for i in *.asc
gpg --verify $i
end
But it would be really nice to type something like:
gpg --verify ***.asc
And have my shell do the same thing as the for loop above.
Any ideas?
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users