You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
-
== comment 1 to answer of "user 1686" == 01.02.2023 11:14 :: thaks for your detailed answer. (1) I always have set "histappend". (2) for some of the cases it is important that I always run two levels of shells bash: first level is what is automatically created when in KDE under Konsole a window is opened. In case of OS KNOPPIX 9.1 this bash is user "knoppix" UID 1000. Thereupon I create a second shell level by "sudo su" or by "/bin/su -c /bin/bash". (continued in next comment)– Anton WesselCommented Feb 1, 2023 at 10:44
-
== comment 2 to answer of "user 1686" == 01.02.2023 11:49 :: (3) We have different observations on our different systems, I will refere to :: Signal HUP in the last days gave messages that HUP will cause exit. And it did cause exit for both levels of shell and for vim in it. BUT THE HISTORY LIST WAS NOT WRITTEN TO HISTORY FILE.. (continued in next comment).– Anton WesselCommented Feb 1, 2023 at 10:49
-
== comment 3 to answer of "user 1686" == 01.02.2023 11:59 :: (4) Here the case, when the window is deleted by hand. To mention: on the bottom of the screen there is a line with the window tabs. When with the mouse I click on the third tab (from left) I swich to the third window. By default this window has the title bar "Konsole 3". And both levels of bash are attached to "/dev/pts/2". It happens very often that by moving the mouse pointer somehow one of the 10 to 15 windows is removed. Thus the tab vanishes inclusive the two levels of bash and processes running in them (continued in next .– Anton WesselCommented Feb 1, 2023 at 11:08
-
== comment 4 to answer of "user 1686" == 01.02.2023 12:15 :: (4) continued. e.g. window 3 is vanished. The history list of bash is not written to history file. Now I have to restore the situation. In any one of the window tabs Iclick right the get the context menu. There I choose "create new window". Now on the most right side of the tab bar a new tab for the new window is creared. And this window has again in the title bar "konsole 3", and the bash is attached again to "/dev/pts/2" as before of the event. And - this is the point - the bash has again its history list. (will be continued).– Anton WesselCommented Feb 1, 2023 at 11:40
-
== comment 5 to answer of "user 1686" == 01.02.2023 12:47 :: (4) continued. And - this is the point - the bash has again its history list as before of the event, has NOT the history read from history file. Thus I have only to move the window tab to the old location, third from left. And all is restored, I can continue my work, as if nothing had happened. This was the behavior in all the 30 years. This behavior had changed since some days. I dont know why. (5) Here now the case when I do nothing by hand intentionally but when by typos a bash crashes. (will be continued)– Anton WesselCommented Feb 1, 2023 at 12:23
|
Show 2 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_`
- quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>
[example](https://example.com)
<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. windows-7), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-bash