X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=script%2Fpublic-inbox-edit;h=6884fd0cb276623f64f4e27b7cb5e965c4140256;hb=f8cc21f0064a34042d149f31097336919adf70d1;hp=2e2c761620e154da65a395f6d9c6a12a756cb14f;hpb=4bb34fb8f29530f6bda5f0d563a74f6289ac312d;p=public-inbox.git diff --git a/script/public-inbox-edit b/script/public-inbox-edit index 2e2c7616..6884fd0c 100755 --- a/script/public-inbox-edit +++ b/script/public-inbox-edit @@ -138,7 +138,7 @@ foreach my $to_edit (values %$found) { # run the editor, respecting spaces/quote retry_edit: - if (system(qw(sh -c), qq(eval "$editor" '"\$@"'), '--', $edit_fn)) { + if (system(qw(sh -c), $editor.' "$@"', $editor, $edit_fn)) { if (!(-t STDIN) && !$opt->{force}) { die "E: $editor failed: $?\n"; }