I have this:
timeout 25 bash -c '
for i in {1..9}; do
if read line < "$my_fifo"; then
if test "$line" != "0"; then
exit 0;
fi
fi
done
'
I don't really like that bash can't do this:
timeout 25 (...)
I don't understand why () is not considered a program by itself. Just an anonymous program... anyway..
my goals is to achieve the above but without the need to use
bash -c 'xyz'
since I won't get syntax highlighting in the quotes etc.
Is there a workaround for this?
Asked by Alexander Mills
(10734 rep)
Nov 22, 2023, 04:00 AM
Last activity: Nov 22, 2023, 05:11 AM
Last activity: Nov 22, 2023, 05:11 AM