aymeric
d5d0c11532
Make the -s flag of fc work correctly. Ensure that only one command is specified
and ensure that we break out of the loop after executing it. With the previous code, because the re-executed command was added to the history, it would think that it still had to execute it, leading to an infinite loop. The last thing which differs from ksh is that we get the "fc -s " command into the history, but this is actually rather a feature in my humble opinion. To test: $ echo hello $ fc -s ec <infinite loop or correct behaviour>
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
Description
No description provided
Languages
C
85.3%
Roff
7.2%
Assembly
3.1%
Shell
1.7%
Makefile
1.2%
Other
0.9%