|
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
[Prev in Thread] | Current Thread | [Next in Thread] |