perl backticks: use bash instead of sh

前端 未结 6 1648
南笙
南笙 2021-01-05 11:20

I noticed that when I use backticks in perl the commands are executed using sh, not bash, giving me some problems.

How can I change that behavior so perl will use ba

6条回答
  •  暖寄归人
    2021-01-05 11:45

    This example works for me:

    $ perl -e 'print `/bin/bash -c "echo <(pwd)"`'
    /dev/fd/63
    

提交回复
热议问题