Timeline for Why is `fc` output different through a pipe in a subshell?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 4 at 18:20 | comment | added | Jacktose | Then why does | cat change its output? | |
| May 3 at 21:50 | comment | added | waltinator | Because fc in a subshell writes its own history into $HISTFILE, with a 4K buffer. That's the history that (fc) searches. Outside a subshell, fc accesses the normal $HISTORY. | |
| May 3 at 21:24 | history | edited | Jacktose | CC BY-SA 4.0 | fix example |
| May 2 at 22:18 | history | asked | Jacktose | CC BY-SA 4.0 |