Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jun 2005 10:30:39 +1200
From:      Juha Saarinen <juhasaarinen@gmail.com>
To:        questions@freebsd.org
Subject:   Re: Problems with command line scratch files in zsh
Message-ID:  <b34be84205061215306b05ba2b@mail.gmail.com>
In-Reply-To: <20050613000119.K19998@maren.thelosingend.net>
References:  <17067.62149.92183.56827@guru.mired.org> <1118608948.705.6.camel@localhost> <20050613000119.K19998@maren.thelosingend.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/13/05, Svein Halvor Halvorsen
<svein-freebsd-questions@theloosingend.net> wrote:
> * Mike Meyer wrote [2005-06-12 03:31 -0500]
> >  > guru% wc <(cat /etc/motd)
> >  > wc: /dev/fd/11: open: No such file or directory
>=20
> Did you mount the fdescfs filesystem? I have this in my /etc/fstab:
>=20
> fdesc    /dev/fd      fdescfs      rw      0       0

With Bash 3.0.0.16_1, fdescfs not mounted:

#wc <(cat /etc/motd)
      24     161    1122 /var/tmp//sh-np-3354758488

zsh, fdescfs mounted:

%sudo mount_fdescfs fdescfs /dev/fd
% mount
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, soft-updates)
/dev/ad0s1d on /var (ufs, local, soft-updates)
/dev/ad0s1g on /home (ufs, local, soft-updates)
devfs on /var/named/dev (devfs, local)
fdescfs on /dev/fd (fdescfs)

% wc <(cat /etc/motd)
      24     161    1122 /dev/fd/11


--=20

Juha



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b34be84205061215306b05ba2b>