gnuplot and bash process substitution

后端 未结 1 683
盖世英雄少女心
盖世英雄少女心 2020-12-11 06:18

Does gnuplot allow bash process substitution?

In gnuplot I can do:

plot \"

But I can\'t get this to work:

相关标签:
1条回答
  • 2020-12-11 06:30

    The command following the < is executed with popen(), which uses /bin/sh (see man popen). So you must invoke bash explicitely in order to make use of the process substitution:

    plot '< exec bash -c "join tmp1 <(join tmp2 tmp3)"' using 2:3
    

    In your case with the single substitution the following would also do:

    plot '< join tmp2 tmp3 | join tmp1 -' using 2:3
    
    0 讨论(0)
提交回复
热议问题