Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Synchronous vs. Asynchronous



I've noticed differences between Mac OS X Tiger and GNU/Linux (Debian).

On 2010-08-21 19:41:22 +0100, Peter Stephenson wrote:
> cat >(sleep 100)
> 
> is uninterruptible, while
[...]

Under Mac OS X, I get:

prunille% cat >(sleep 100)
cat: /dev/fd/31: Permission denied
^C^C^C^C^C^C^C^C

^C^C^C^C^C^C^C
prunille%

Under Linux:

xvii% cat >(sleep 100)
^C^C^C^C^C

Both are uninterruptible, but I get an error under Mac OS X.
Now...

prunille% printf "a%s\n" {1..9} >>(while read s; do sleep 1; echo $s; done)
a1
a2
a3
^Ca4
^C^C^Ca5
^C^C^Ca6
^C^Ca7
a8
a9
prunille%

is uninterruptible, but not under Linux:

xvii% printf "a%s\n" {1..9} >>(while read s; do sleep 1; echo $s; done)
a1
a2
a3
^C%
xvii% a4
a5
a6
a7
a8
a9

xvii%

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author