Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14244 > unrolled thread
| Started by | L A Walsh <bash@tlinx.org> |
|---|---|
| First post | 2018-06-16 21:03 -0700 |
| Last post | 2018-06-16 21:03 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: history shows edited lines not the lines actually ran L A Walsh <bash@tlinx.org> - 2018-06-16 21:03 -0700
| From | L A Walsh <bash@tlinx.org> |
|---|---|
| Date | 2018-06-16 21:03 -0700 |
| Subject | Re: history shows edited lines not the lines actually ran |
| Message-ID | <mailman.2101.1529208215.1292.bug-bash@gnu.org> |
kermit@new.rednsx.org wrote:
>
> Description:
> when you edit a line from your bash history, history shows the edited version, even if you never ran it
> ewriting history is generally considered bad in most contexts,
----
Only if you do something to a relative
that causes you not to be born. (humor)
> and i found this to be counter intuitive and can't think of why anyone would want it this way
>
Bash history isn't an audit trail. It's a convenience for the user and
a way to be able to recall commands and how you did something 2 years
ago (if you keep your history around and keep it searchable).
As for usefulness... haven't you ever had to type in a password on the
command line? Or, at least had it be easier to do so, but I really
don't like
leaving it in a file, so I usually scroll up to the line w/the password and
just delete the line. Problem solved.
As for adding things I never did -- not something I've ever had a need
for, so never have done it. But the delete and merging of duplicates across
history files (they are recorded / terminal, so they usually don't overwrite
each other unless I start another copy of bash to preserve a previous
environment.
Back to top | Article view | gnu.bash.bug
csiph-web