Skip to content

unexpected result for creating directory tree using callProcess or callCommand #259

@pucsdian

Description

@pucsdian

shell command :-

mkdir -p ./{new/{new1,new2},old}

tested with :-

callProcess "mkdir" ["-p" , "./{new/{new1,new2},old}"]
callCommand "mkdir -p ./{new/{new1,new2},old}"

result :-

.
├── {new
│ └── {new1,new1},old}

expected output :-

tree .
.
├── new
│   ├── new1
│   └── new1
└── old

I printed shell command with :-
showCommandForUser "mkdir" ["-p" , "./{new/{new1,new2},old}"]

output :- "mkdir -p './{new/{new1,new2},old}'"

this single single quotes around directory name causing problem
how can i fix this

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