bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Enabling History Expansion with `set -H'.


From: Ralph Corderoy
Subject: Enabling History Expansion with `set -H'.
Date: Sun, 21 Jan 2018 12:13:29 +0000

Hi,

Please keep me CC'd.

bash package 4.4.012-2 on Arch Linux,
`version 4.4.12(1)-release (x86_64-unknown-linux-gnu)'.

I'm trying to enable history expansion in a non-interactive bash with
`set -H'.

    $ printf '%s\n' ': foo' 'echo !!' 'set -H' ': bar' 'echo !!' |
    > bash 
    !!
    !!
    $

I'd expect the second `!!' to be `: bar'.
What am I misunderstanding?

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]