News for hackers. Stuff that matters.
Re:Renaming files with mv without typing the name two times by jraph on Tuesday April 14, 2020 @02:03AM (#22863144)
Also works on zsh and fish, though fish does not enumerate in the same order. Indeed does not work on sh.

Thanks for the heads up.

Too bad it's not portable, but I guess this is mainly useful in an interactive shell.

I mostly use #!/usr/bin/env sh, so my scripts will remain free of shell Cartesian products and other brace expansions.

There are no comments on this comment yet.