|
2019-06-13
| ||
| 08:12 | • Closed ticket [1dc8bc566a]: "?" not recognized as a string in lsearch<... artifact: a54adec4cf user: sebres | |
| 06:40 | • New ticket [1dc8bc566a]. artifact: 2ad80738c8 user: hant | |
"?" not recognized as a string in lsearch
Closed / Invalid1dc8bc566ad971c5fdd0aad107151bf8ccf10f02Created 7 years agoUpdated 7 years ago
Descriptionplain2019-06-13 06:40:25
"?" is not recognized in:
lsearch list "?"
example:
lsearch {a b c} "?"
==> 0
lsearch {a ? c} "?"
==> 0
lsearch -all {a b c} "?"
==> 0 1 2
sebreswiki2019-06-13 08:12:08
As the documentation for lsearch says:
If all matching style options are omitted, the default matching style is -glob.So use option -exact to avoid this:
% lsearch -exact {a ? c} "?"
1
Log in (anonymous is fine) to add a comment.