Problem with Nested double quote and single quote command #730
Unanswered
sorrentinov
asked this question in
Help needed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Expected Behavior
I have two variables:
const sharePointSite = "https://mysharepoint.com/sites/MySite"
const sharePointListName = "MyList"
I would in zx execute this command (using m65 cli) that return the existing list in the site filtered by Title:
$
m365 spo list list --webUrl ${sharePointSite} --properties Id,Title --filter "Title eq $sharePointListName" --output text
I've tried on bash and it works fine:
m365 spo list list --webUrl https://mysharepoint.com/sites/MySite --properties Id,Title --filter "Title eq 'MyList'" --output text
Actual Behavior
I receive this error: The expression "Title eq $'MyList'" is not valid.
Steps to Reproduce the Problem
Specifications
Beta Was this translation helpful? Give feedback.
All reactions