I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
If I don't want to run the command I'm editing - if I change my mind - then I can't prevent it. Either exiting with no changes or exiting without saving will still result in the command being run. I suppose I could add a hash to the start of the line to comment it out but that seems like a bit of a hack.
I've been vaguely aware of fc for a while, but I haven't seen any benefit to it except over extremely long command lines, which I'd prefer were split out in a script anyway.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If I don't want to run the command I'm editing - if I change my mind - then I can't prevent it. Either exiting with no changes or exiting without saving will still result in the command being run. I suppose I could add a hash to the start of the line to comment it out but that seems like a bit of a hack.
I've been vaguely aware of
fc
for a while, but I haven't seen any benefit to it except over extremely long command lines, which I'd prefer were split out in a script anyway.