aboutsummaryrefslogtreecommitdiff
path: root/jim-pack.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2020-05-07 09:21:23 +1000
committerSteve Bennett <steveb@workware.net.au>2020-05-07 09:23:37 +1000
commita6c24e9c1a78da2ae9a5d5e6a110f26da40ac143 (patch)
tree87f009623110e373dceb5fc082e62147ffcf2aa1 /jim-pack.c
parent659f043196f313c69e32876e3641d0865a1e49cd (diff)
downloadjimtcl-a6c24e9c1a78da2ae9a5d5e6a110f26da40ac143.zip
jimtcl-a6c24e9c1a78da2ae9a5d5e6a110f26da40ac143.tar.gz
jimtcl-a6c24e9c1a78da2ae9a5d5e6a110f26da40ac143.tar.bz2
lsearch, switch: fix -regexp case with option-like pattern
If the pattern begins with -, the internal invocation of regexp will treat the pattern as an option. Fix this by adding -- to the internal invocation of regexp. Fixes #154 Reported-by: Barry Arthur <barry.arthur@gmail.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-pack.c')
0 files changed, 0 insertions, 0 deletions