Forum Discussion
hooleylist
Aug 30, 2011Cirrostratus
Michael, you were right. You need two backslashes to escape the question mark:
% switch -glob {/yz} {
"/ab*" -
/cd* -
"/\\??" { puts matched }
default { puts "no match" }
}
no match
%
% switch -glob {/?z} {
"/ab*" -
/cd* -
"/\\??" { puts matched }
default { puts "no match" }
}
matched
Aaron