I'm on Xubuntu 20.04.02
This is a question about ksh command history. Something had changed recently and I'm looking for a way to restore the old behavior.
For years and up to about a month or so ago, when you typed a command with an error, it would issue an error message and the command would be placed on the history list so that it could be recalled and edited. However, now the erroneous command generates the error but is NOT placed on the history list. Here is an example:
169-> for i in * do echo $i ; done
ksh: syntax error: `done' unexpected
169->
I intentionally left off the semicolon before the "do" and the command fails. But you can see that the history number has not incremented and the command cannot be recalled to be edited. This is a real PITA and I have 40 years of editing muscle memory that is being thwarted by this. I have a hard time believing that someone is mucking about with the ksh code, but maybe. Anyway, has anyone else seen this and is there a solution to get back the old behavior?
Thanks.