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

Re: "expanding" to copy-earlier-word



On Thu, 13 Aug 2015 09:22:09 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Aug 13,  1:16pm, Peter Stephenson wrote:
> }
> } I would have thought a function with a single argument was much simpler...
> 
> Er, do you mean we should have a function instead of $history[HISTCMD] ?

No, I mean Dominik is probably a lot better off doing

fn()
{
  make $1
  ./$1
}

or something such.

Arguably zsh/parmeters could provide more detail of the current command line.

pws



Messages sorted by: Reverse Date, Date, Thread, Author