Skip to content

Problem with Nested double quote and single quote command #729

@sorrentinov

Description

@sorrentinov

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

  1. install m365
  2. use the command above

Specifications

  • Version: 7.2.3
  • Platform: Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions