tomdagliusa
Programmer
I have a switch where I am getting interpretation, but don't want to:
gist of code:
switch -glob -- $cmd {
"read" {blahblah}
"write" {other}
"no*" {
"no read" {no blahblah}
"no write" {no other}
}
}
When I run the code, I get "no read" failing as an
invalid command name.
I'm not sure how to un-bracket this so the interpreter doesn't kick in.
???,
Tom
gist of code:
switch -glob -- $cmd {
"read" {blahblah}
"write" {other}
"no*" {
"no read" {no blahblah}
"no write" {no other}
}
}
When I run the code, I get "no read" failing as an
invalid command name.
I'm not sure how to un-bracket this so the interpreter doesn't kick in.
???,
Tom