-1

How do I correctly write this in a Windows Powershell? Coming from macOS, I have some problems in understanding what it is wrong with this:

pp -u -g -o Executable -f Bleach="^(AAA_|BBB_|MainScript)" MainScript.pl

The regular expression to be passed to the option -f (filter) is not accepted and fires all sort of errors (command not recognized, and so on, no matter as I try to change it). On a Unix system it works just fine.

1
  • 3
    Iinsert --% to keep powershell from parsing your parameters. pp --% -u -g -o Executable -f Bleach="^(AAA_|BBB_|MainScript)" MainScript.pl See using --% in powershell Commented Jun 24, 2018 at 8:23

1 Answer 1

0

Escape character for Powershell is `.

Something like this could work:
pp -u -g -o Executable -f Bleach=`"`(AAA_`|BBB_`|MainScript`)`" MainScript.pl`

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.