bug-bash
[Top][All Lists]
Advanced

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

is it a bug? (little script)


From: Antonio Macchi
Subject: is it a bug? (little script)
Date: Sun, 05 Oct 2008 17:17:22 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20080213)

#!/bin/bash -e

trap "rm test_fifo" 0
mkfifo test_fifo

ls / > test_fifo &

exec 9<&0

while read dirname
do
  echo $dirname

  # if I wait, exits!!!
  read -t 2 -p "press enter..." 0<&9
done < test_fifo

exec 9<&-

exit 0




reply via email to

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