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 
FIFOs.

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