La "shell di sistema" non è generalmente modificabile. Vedere perldoc -f exec:
If there is more than one argument in LIST, or if LIST is an array with more than one value, calls execvp(3) with the arguments in LIST. If there is only one scalar argument or an array with one element in it, the argument is checked for shell metacharacters, and if there are any, the entire argument is passed to the system's command shell for parsing (this is "/bin/sh -c" on Unix platforms, but varies on other platforms).
Se avete veramente bisogno bash per eseguire un compito particolare, considerano definendola esplicitamente:
my $result = `/usr/bin/bash command arguments`;
o anche:
open my $bash_handle, '| /usr/bin/bash' or die "Cannot open bash: $!";
print $bash_handle 'command arguments';
Si potrebbe anche mettere i comandi bash in un file .sh e invocarlo direttamente:
my $result = `/usr/bin/bash script.pl`;
Sono quasi certo che la risposta è "non si". – tster
perché? Qual è il tuo understatement? –
'sh' è universale,' bash' non lo è. – Amadan