On 4.6. 06:48, Edward Huff wrote:
That is unexpected.
bash --version
GNU bash, version 4.4.19(1)-release (x86_64-redhat-linux-gnu)
I assume you'd like Bash to behave like ksh here, and to expand the
process expansion filename as a distinct word instead of concatenating
it with the surrounding strings?
$ bash -c 'cat<(echo foo)bar'
bash: cat/dev/fd/63bar: No such file or directory
$ ksh -c 'cat<(echo foo)bar'
foo
cat: bar: No such file or directory
In this case, it would make sense to separate the words and make it just
work like a redirection. But in some cases you might want the filename
prefixed with a string, e.g.:
somecmd --file=<(echo something)
Ksh's behavior makes that impossible.
--
Ilkka Virta / itvi...@iki.fi