Closed tuzi3040 closed 4 years ago
Is this compatible with cmd and bash shell? Have you tested it?
Is this compatible with cmd and bash shell? Have you tested it?
It's ok with pwsh core@7.0.3
, cmd
on my win notebook and zsh
/bash
/sh
on my mbp.
I'm not sure if it is compatible with sth like fish
which is not Bourne shell
like.
LGTM, thank you.
Landed in 1.1.19
I'll revert this because some users reported that this is incompatible with cmd.
&
is treated as a call operator in pwsh. This commit escapes it by adding single quotes'
.&
may also be escaped by using three double quotes"""
or adding--%
in front of arguments to prevent pwsh to expand args, though which may not be fully compatible with MS Command or Linux Shell.