Re: Add non-interactive PROMPT_COMMAND
> "AKK" == Andreas Kusalananda Kähäri writes: AKK> Does setting a DEBUG trap not do what you want? Such a trap would be AKK> executed before each simple command... OK! I guess it does! Thanks.
Add non-interactive PROMPT_COMMAND
PROMPT_COMMAND=sleep\ 1 is great, it lets us slow down scripts... but alas only if they are interactive. One might say: "Sure, instead of $ bash script just use $ sed 's/^/sleep 1; /' script | bash" But that assumes one command per line, and could easily mangle things. Instead bash simply needs