Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] multiprocessing.eclass: doing parallel work in bash
Date: Sat, 02 Jun 2012 21:13:16
Message-Id: 201206021712.30278.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] multiprocessing.eclass: doing parallel work in bash by Zac Medico
1 On Saturday 02 June 2012 16:39:16 Zac Medico wrote:
2 > On 06/02/2012 12:54 PM, Mike Frysinger wrote:
3 > > if [[ ! -L /dev/fd/${fd} ]] ; then
4 > > eval "exec ${fd}${redir}'${file}'" && break
5 > > fi
6 >
7 > I launched up a GhostBSD livedvd to see what /dev/fd/ looks like on
8 > FreeBSD, and it seems to contain plain character devices instead of
9 > symlinks to character devices:
10
11 i didn't want to use [ -e ] because of broken links, but it seems that Linux
12 has diff semantics with /proc and broken symlinks. `test -e` will return true.
13 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies