Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #266968
| From | Will Mengarini <seldon@eskimo.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: script/history |
| Date | 2024-02-05 02:20 +0100 |
| Message-ID | <I3VOp-7WJ2-3@gated-at.bofh.it> (permalink) |
| References | <I3Hip-7Nv9-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
* Gareth Evans <donotspam@fastmail.fm> [24-02/04=Su 09:46 +0000]: > Re the script command, does anyone know of a way to make > commands run during a script session appear in bash history too? You want the 'history -r' command, "explained" by `help history`. After you end the script, you're back in the bash instance you ran 'script' from. When you ended the script & therefore the bash being run in that script, that bash wrote its commands to ~/.bash_history; but the bash you're running, which is the one you ran script from, hasn't read that ~/.bash_history. Running 'history -r' will cause it to do so. BTW I've got some kind of email configuration problem that usually prevents me from posting to debian-user, even though I can usually email individual users. Gareth, if you get this, and it's the correct solution to your original problem, perhaps you could post it to the list; this email is CCd to debian-user, but I expect the CC to bounce.
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
script/history "Gareth Evans" <donotspam@fastmail.fm> - 2024-02-04 10:50 +0100
Re: script/history hw <hw@adminart.net> - 2024-02-04 12:20 +0100
Re: script/history Michael Grant <mgrant@grant.org> - 2024-02-04 12:30 +0100
Re: script/history "Gareth Evans" <donotspam@fastmail.fm> - 2024-02-04 14:20 +0100
Re: script/history hw <hw@adminart.net> - 2024-02-04 14:30 +0100
Re: script/history Greg Wooledge <greg@wooledge.org> - 2024-02-04 14:30 +0100
Re: script/history Max Nikulin <manikulin@gmail.com> - 2024-02-04 14:30 +0100
Re: script/history "Gareth Evans" <donotspam@fastmail.fm> - 2024-02-04 17:10 +0100
Re: script/history Greg Wooledge <greg@wooledge.org> - 2024-02-04 18:40 +0100
Re: script/history "Gareth Evans" <donotspam@fastmail.fm> - 2024-02-05 01:30 +0100
Re: script/history Greg Wooledge <greg@wooledge.org> - 2024-02-05 01:50 +0100
Re: script/history "Gareth Evans" <donotspam@fastmail.fm> - 2024-02-05 02:30 +0100
Re: script/history David Wright <deblis@lionunicorn.co.uk> - 2024-02-04 20:50 +0100
Re: script/history Greg Wooledge <greg@wooledge.org> - 2024-02-04 21:40 +0100
Re: script/history "Gareth Evans" <donotspam@fastmail.fm> - 2024-02-05 01:40 +0100
Re: script/history Will Mengarini <seldon@eskimo.com> - 2024-02-05 02:20 +0100
csiph-web