bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: process substitution with a give suffix


From: pk
Subject: Re: process substitution with a give suffix
Date: Wed, 08 Dec 2010 15:48:47 -0000

Greg Wooledge wrote:

> On Tue, Jun 08, 2010 at 12:53:47PM -0500, Peng Yu wrote:
>> I have a program that only accept argument with a give suffix
>> 
>> ./program xxx.suffix
>> 
>> If I use process substitution, which gives me /dev/fd/xx, it will not
>> work with the program. Is there a way to make sure a suffix is added
>> to the substitute process file handle in /def/fd/, so that the program
>> can work with process substitution?
> 
>   mkfifo myfifo.suffix
>   something >myfifo.suffix &
>   ./program <myfifo.suffix

I suspect that if he can do this, then he may as well be able to do

./program < <(something)

(unless program is *very* picky, that is).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]