[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a patch to fix sh_stat on SunOS
From: |
Grisha Levit |
Subject: |
Re: a patch to fix sh_stat on SunOS |
Date: |
Sun, 21 Aug 2016 16:03:05 -0400 |
On Aug 20, 2016 9:32 PM, "Dmitry Goncharov" <dgoncharov@users.sf.net> wrote:
> With this new contract how can the user write portable bash code which tests if a fd refers to a pipe?
The test command seems to have the behavior you expect.
$ uname
SunOS
$ mkfifo /tmp/pipe
$ cat < /tmp/pipe &
[1] 25376
$ exec 6>/tmp/pipe
$ test -p /dev/fd/6 && echo pipe
$ /usr/bin/test -p /dev/fd/6 && echo pipe
pipe
- Re: a patch to fix sh_stat on SunOS, (continued)
- Re: a patch to fix sh_stat on SunOS, Chet Ramey, 2016/08/10
- Re: a patch to fix sh_stat on SunOS, Dmitry Goncharov, 2016/08/10
- Re: a patch to fix sh_stat on SunOS, Chet Ramey, 2016/08/10
- Re: a patch to fix sh_stat on SunOS, Dmitry Goncharov, 2016/08/10
- Re: a patch to fix sh_stat on SunOS, Chet Ramey, 2016/08/11
- Re: a patch to fix sh_stat on SunOS, Dmitry Goncharov, 2016/08/20
- Re: a patch to fix sh_stat on SunOS, Chet Ramey, 2016/08/21
- Re: a patch to fix sh_stat on SunOS, Dmitry Goncharov, 2016/08/21
- Re: a patch to fix sh_stat on SunOS, Chet Ramey, 2016/08/22
- Message not available
- Re: a patch to fix sh_stat on SunOS, Chet Ramey, 2016/08/24
- Re: a patch to fix sh_stat on SunOS,
Grisha Levit <=
- Re: a patch to fix sh_stat on SunOS, Dmitry Goncharov, 2016/08/21