From a0c6435e008a5a370d9d54e5ce32b834560dfe2b Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 29 May 2026 06:52:09 +0200 Subject: [PATCH] bin/shell-replace --- bin/shell-replace | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/shell-replace b/bin/shell-replace index 46e807df..2b5198d1 100755 --- a/bin/shell-replace +++ b/bin/shell-replace @@ -196,7 +196,8 @@ sub cmd { my $cmd = join(' ',@_); my $hcmd; - open($hcmd,"-|",$cmd) or die "$!: $?: $@"; + open($hcmd,"-|","bash","-lc",$cmd) or die "$!: $?: $@"; + # NB 29.05.26 open($hcmd,"-|",$cmd) or die "$!: $?: $@"; my @cmd = <$hcmd>; close $hcmd; return wantarray ? @cmd : join('',@cmd); -- 2.47.3