Цитата: Алексей Гринь от декабря 13, 2010, 02:51Да, но что поделать? Замены нет.
Очередной хак вокруг кривой архитектуры — ничего удивительного.
Цитата: http://zsh.sourceforge.net/Intro/intro_7.htmlТорт.
Note that the shell creates a temporary file, and deletes it when the command is finished.
Цитата: myst от декабря 12, 2010, 13:52Вас утешит, что они автоматически удаляются сразу после завершения использующей их команды (во всяком случае в цѵгвине, с убунтой не проверял, но, думаю, там тоже):
Именованные каналы по-прежнему обламывают.
$ echo <(ls)
/proc/self/fd/63
$ cat /proc/self/fd/63
cat: /proc/self/fd/63: No such file or directory
Цитата: myst от декабря 7, 2010, 13:00comparator <(filter1<data-source1) <(filter2<data-source2) >result
Мне надо смастерить следующий агрегат:
data-source1 → filter1 →
↘
→ comparator → result
↗
data-source2 → filter2 →
Цитата: oort от декабря 8, 2010, 16:23comparator <(prog1 | filter1) <(prog2 | filter2)mkfifo /tmp/fifo{1,2}
prog1 | filter1 > /tmp/fifo1 &
prog2 | filter2 > /tmp/fifo2 &
comparator /tmp/fifo{1,2}
Цитировать
Process Substitution
Process substitution is supported on systems that support named pipes (FIFOs) or the /dev/fd method of naming open files. It takes the form of <(list) or >(list). The process list is run with its input or output connected to a FIFO or some file in /dev/fd. The name of this file is passed as an argument to the current command as the result of the expansion. If the >(list) form is used, writing to the file will provide input for list. If the <(list) form is used, the file passed as an argument should be read to obtain the output of list.
When available, process substitution is performed simultaneously with parameter and variable expansion, command substitution, and arithmetic expansion.
Цитата: Alone Coder от декабря 10, 2010, 12:02А мне она ни разу и не нужна.
Тогда вам многозадачность ни разу не поможет.
Страница создана за 0.049 сек. Запросов: 20.