Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #12024
| From | Stephane Chazelas <stephane.chazelas@gmail.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: SHELLOPTS=xtrace security hardening |
| Date | 2015-12-15 15:40 +0000 |
| Message-ID | <mailman.2164.1450194055.31583.bug-bash@gnu.org> (permalink) |
| References | (2 earlier) <20151213220817.GC7138@chaz.gmail.com> <20151214180113.169546iutu72yw9k@webmail.alunos.dcc.fc.up.pt> <20151214173231.GA6524@chaz.gmail.com> <20151215003016.598611ow5f3lw4qo@webmail.alunos.dcc.fc.up.pt> <56701D21.3070700@case.edu> |
2015-12-15 09:01:05 -0500, Chet Ramey: [...] > > Mind explaining this one? > > I can't seem to write to HISTFILE in a non-interactive shell, or am i > > missing something? > > 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. [...] BTW: $ bash -o history -o histexpand -c 'echo !!' !! $ bash -o history -o histexpand <<< 'echo !!' !! $ SHELLOPTS=history:histexpand bash -c 'echo !!' !! $ SHELLOPTS=history:histexpand bash <<< 'echo !!' bash: line 1: !!: event not found $ SHELLOPTS=history:histexpand bash <(<<<'echo !!') /proc/self/fd/11: line 1: !!: event not found $ bash -o history -o histexpand <(<<< 'echo !!') !! (also note that when there is an error, the exit status is 0) -- Stephane
Back to gnu.bash.bug | Previous | Next | Find similar
Re: SHELLOPTS=xtrace security hardening Stephane Chazelas <stephane.chazelas@gmail.com> - 2015-12-15 15:40 +0000
csiph-web