Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: <(cat) doesn't work but =(cat) does ?



2008/9/26 Louis-David Mitterrand <vindex+lists-zsh-users@xxxxxxxxxxx>:
> Hi,
>
> when trying this:
>
>        % ssh remotehost "transmission-remote -a <(cat)" < ~/torrent.file
>
> I get this error:
>
>        Couldn't read "/proc/self/fd/11": Not a regular file
>        Couldn't add file: /proc/self/fd/11
>
> However when using:
>
>        % ssh remotehost "transmission-remote -a =(cat)" < ~/torrent.file
>
> all is well.
>
> Why doesn't the first form work?

Presumably for the reasons stated by the program. <() gives you a symlink
to an fd, while =() gives you a temporary file in /tmp which is seekable
and all that.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author