Advanced Bash-Scripting Guide script result different with it on the linux

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Mon Mar 24 20:01:00 GMT 2014


On 3/24/2014 2:02 PM, shu wrote:
>   A script  in Advanced Bash-Scripting Guide (at the bottom of
> http://www.tldp.org/LDP/abs/html/ioredirintro.html )
>
> Even i had change "sleep 1" -->"sleep 3" , still different.
> Come out result:
> 2nd, to stderr
> FD4: FIFO2: 3rd, to fd 3
> FD6: FIFO2: 3rd, to fd 3
> FD5: FIFO2: 3rd, to fd 3
> FIFO1: FIFO2: 3rd, to fd 3
> FD4: 4th, to fd 4
> FD5: 5th, to fd 5
> FD5: PIPE: 6th, through a pipe, to fd 5
> FD6: 7th, to fd 6
> FIFO1: 8th, to fd 7
> FIFO1: FD8: 9th, to fd 8, to fd7
>
>
> While linux result is:
> 1st, to stdout
> 2nd, to stderr
> FIFO2: 3rd, to fd 3
> FD4: FIFO2: 3rd, to fd 3
> FIFO1: FIFO2: 3rd, to fd 3
> FD5: FIFO2: 3rd, to fd 3
> FD6: FIFO2: 3rd, to fd 3
> FD4: 4th, to fd 4
> FD5: 5th, to fd 5
> FD5: PIPE: 6th, through a pipe, to fd 5
> FD6: 7th, to fd 6
> FIFO1: 8th, to fd 7
> FIFO1: FD8: 9th, to fd 8, to fd7

I got this with Cygwin 1.7.28.

1st, to stdout
2nd, to stderr
FIFO2: 3rd, to fd 3
FD4: FIFO2: 3rd, to fd 3
FIFO1: FIFO2: 3rd, to fd 3
FD5: FIFO2: 3rd, to fd 3
FD6: FIFO2: 3rd, to fd 3
FD4: 4th, to fd 4
FD5: 5th, to fd 5
FD5: PIPE: 6th, through a pipe, to fd 5
FD6: 7th, to fd 6
FIFO1: 8th, to fd 7
FIFO1: FD8: 9th, to fd 8, to fd7

If just this information doesn't help you find where your problem is, I
recommend reading and following the problem reporting guidelines at the
link below before any follow-up email to this list:

> Problem reports:       http://cygwin.com/problems.html


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list