On Thu, 29 Oct 2015 21:38:07 -0400, "Ted Unangst" wrote:

> fc -e - | -s [-g] [old=new] [prefix]
> 
> 1. What does fc stand for? The manual doesn't tell me.

According to bash it is "fix command" though I thought it was "find
command".  Who knows?

> 2. What's prefix?

I believe that lets you edit a command other than the previous one.
E.g.

$ ls /
...
$ id
$ fc -s /=~ ls
[listing of my home dir]

So in this case "prefix" is used to match the beginning of the
command to edit.

> 3. The grouping of the operands to | appears wrong. Or at least hard to
> decipher.

We should remove "-e -" from there and mention that "-e -" is equivalent
to "-s" in the description.

> 4. I've read this section, and the previous one on fc [-e editor | -l [-n]]
> about a dozen times, and I think I've at last reached the point where I can
> say with confidence I have no idea what's going on.

You obviously need to spend more time in ed.

 - todd

Reply via email to