Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2005 03:31:01 -0500
From:      Mike Meyer <mwm@mired.org>
To:        questions@freebsd.org
Subject:   Problems with command line scratch files in zsh
Message-ID:  <17067.62149.92183.56827@guru.mired.org>

next in thread | raw e-mail | index | archive | help
Since going to 5.x with devfd, I've noticed that some of the shell
constructs used by zsh (and other shells - I know zsh didn't invent
this) quit working. To wit:

guru% wc <(cat /etc/motd)
wc: /dev/fd/11: open: No such file or directory

The <(...) construct runs the pipe in (), and replaces the <(...) with
the name of the /dev/fd/ entry for the output of that pipe. The file
exists for the shell process doing all this. But when the comm process
tries to open the file to read the data, the file doesn't exist. This
is pretty nasty.

Anyone got any suggestions on how to fix this? A bug report with a
patch, maybe (I couldn't find any such bug report)? Workarounds? Maybe
this should go to hackers@freebsd.org?

	Thanks,
	<mike
-- 
Mike Meyer <mwm@mired.org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.



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