Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d0d0302f
...
d0d0302f9ab0c44a95e298742d1e7bf410212a2b
authored
2002-08-23 12:26:16 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Properly handle --re and -- flags.
1 parent
6aeb6636
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
imap4d/testsuite/lib/imap4d.exp
imap4d/testsuite/lib/imap4d.exp
View file @
d0d0302
...
...
@@ -216,8 +216,21 @@ proc imap4d_test { args } {
set len
[
expr
[
llength
$args
]
- 1
]
if
{
$len
>= 2
}
{
set regexp 0
for
{
set
i 1
}
{
$i
<=
[
expr
$len
- 1
]}
{
incr
i
}
{
set pattern
[
concat
$pattern
[
list
"*
[
lindex
$args
$i
]
"
]]
switch -regexp --
"
[
lindex
$args
$i
]
"
{
-re.*$ -
--
{
set item
"
[
lindex
$args
$i
]
"
;
set regexp 1
}
default
{
if
{
$regexp
}
{
set item
"
\\
*
[
lindex
$args
$i
]
"
}
else
{
set item
"*
[
lindex
$args
$i
]
"
}
set regexp 0
}
}
set pattern
[
concat
$pattern
[
list
$item
]]
}
set tagged
[
lindex
$args
end
]
}
else
if
{
$len
== 1
}
{
...
...
Please
register
or
sign in
to post a comment