Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #12027
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: SHELLOPTS=xtrace security hardening |
| Date | 2015-12-15 11:49 -0500 |
| Message-ID | <mailman.2175.1450198203.31583.bug-bash@gnu.org> (permalink) |
| References | (3 earlier) <20151214180113.169546iutu72yw9k@webmail.alunos.dcc.fc.up.pt> <20151214173231.GA6524@chaz.gmail.com> <20151215003016.598611ow5f3lw4qo@webmail.alunos.dcc.fc.up.pt> <20151215111627.GA6836@chaz.gmail.com> <20151215173747.666455ueht7z5mw4@webmail.alunos.dcc.fc.up.pt> |
On 12/15/15 11:37 AM, up201407890@alunos.dcc.fc.up.pt wrote: >> You just need to enable history (set -o history). History is independent >> of whether or not the shell is interactive; it's just enabled by default >> in interactive shells. > > doing a "set -o history" didn't work for me, only when i added a "history > -a" eg: $ cat x19 #!/bin/bash rm -f /tmp/history # make sure it's not there set -o history HISTFILE="/tmp/history" HISTSIZE="1000" printf 'something\n' $ ../bash-4.3-patched/bash ./x19 something $ ls -l /tmp/history -rw------- 1 chet wheel 61 Dec 15 11:48 /tmp/history $ cat /tmp/history HISTFILE="/tmp/history" HISTSIZE="1000" printf 'something\n' -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar
Re: SHELLOPTS=xtrace security hardening Chet Ramey <chet.ramey@case.edu> - 2015-12-15 11:49 -0500
csiph-web