Forum Discussion
hooleylist
Aug 08, 2011Cirrostratus
Michael's idea of using just the query string might work for your scenario. If not, you should be able to escape the question mark to have it interpreted literally. Here's a quick test using tclsh. I think you'd want just one backslash:
% switch -glob {/z?} {
"/ab*" -
"/cd*" -
"/\\??" { puts matched }
default { puts "no match" }
}
no match
% switch -glob {/z?} {
"/ab*" -
"/cd* -
"/\??" { puts matched }
default { puts "no match" }
}
matched
Aaron