[Top][All Lists]

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

Re: History -r breaks on FIFOs

Subject: Re: History -r breaks on FIFOs
Date: Thu, 21 Jan 2021 19:31:07 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.1

On 21/01/2021 16:18, Merijn Verstraaten wrote:
The history command doesn't seem to work when given a FIFO instead of a file. I was trying to load 
history from FIFO using either 'history -r <(echo "$hist")' or 'echo "$hist" | 
history -r /dev/stdin', but neither of these seem to work, due to the command being unable to handle 

As the second command doesn't make for a valid test case, I'll add some additional context.

# Succeeds
echo injected > commandlist; ( history -r commandlist && history 1 )
# Fails
echo injected | { history -r /dev/stdin && history 1; }

Kerin Millar

reply via email to

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