Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k
Notice removed Draw attention by Bernhard
Bounty Ended with Baronsed's answer chosen by Bernhard
Tweeted twitter.com/#!/StackUnix/status/411761983835615232
Notice added Draw attention by Bernhard
Bounty Started worth 50 reputation by Bernhard
Upgraded text
Source Link
Bernhard
  • 12.6k
  • 5
  • 62
  • 70

Sometimes, I am using the fc builtin in bash (3.2 if that matters), to recall commands from the history, after having. This also offers the possibility to edit them, before execution.

For example, by typing

fc 23 27

I can then re-execute command 23 till 27 again. But now I want to execute this specific fc 23 27 command again. How should I do that? It looks as if the executed fc is not stored in the command history, although the newly executed lines are.

Sometimes, I am using the fc builtin in bash (3.2 if that matters), to recall commands from the history, after having the possibility to edit them.

For example, by typing

fc 23 27

I can then re-execute command 23 till 27 again. But now I want to execute this specific fc command again. How should I do that? It looks as if the executed fc is not stored in the command history, although the newly executed lines are.

Sometimes I am using the fc builtin in bash (3.2 if that matters), to recall commands from the history. This also offers the possibility to edit, before execution.

For example, by typing

fc 23 27

I can re-execute command 23 till 27. But now I want to execute this specific fc 23 27 command again. How should I do that? It looks as if the executed fc is not stored in the command history, although the newly executed lines are.

Source Link
Bernhard
  • 12.6k
  • 5
  • 62
  • 70

Re-execute fc command from history

Sometimes, I am using the fc builtin in bash (3.2 if that matters), to recall commands from the history, after having the possibility to edit them.

For example, by typing

fc 23 27

I can then re-execute command 23 till 27 again. But now I want to execute this specific fc command again. How should I do that? It looks as if the executed fc is not stored in the command history, although the newly executed lines are.