News for hackers. Stuff that matters.
Re:Renaming files with mv without typing the name two times by matt-attack on Monday April 13, 2020 @09:24PM (#22861932)
Using echo is the wrong way. What you do is ‘CTRL-x *’. That will expand any glob right there on the command line.
Re:Renaming files with mv without typing the name two times by kazinator on Monday April 13, 2020 @09:31PM (#22861966)
Brace expansion isn't a glob, unfortunately. Did you try it?
Re:Renaming files with mv without typing the name two times by bruce_one on Tuesday April 14, 2020 @12:45AM (#22862830)
I didn't know the `CTRL-x * ` expansion; it appears to work in zsh for brace expansion:

  $ touch asdf-{gh,jk}-l
  # CTRL-x *
  $ touch asdf-gh-l asdf-jk-l
Re:Renaming files with mv without typing the name two times by tsbinz on Tuesday April 14, 2020 @04:39AM (#22863828)
In zsh you can use tab to expand globs/braces/variables as well.
Re:Renaming files with mv without typing the name two times by m463 on Tuesday April 14, 2020 @08:00AM (#22864838)
I didn't know about that.

I tried control-x escape, that only does variable expansion (and it appears to expand aliases too)