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
dc3ce4a6
...
dc3ce4a66c064135c985603aaeb7f13c09c053af
authored
2006-10-30 12:40:46 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Allow use of ^ and $ as positioning commands
1 parent
a5e5b651
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
mail/util.c
mail/util.c
View file @
dc3ce4a
...
...
@@ -87,7 +87,9 @@ util_do_command (const char *c, ...)
char
*
p
;
/* Special case: a number alone implies "print" */
if
(
argc
==
1
&&
strtoul
(
argv
[
0
],
&
p
,
10
)
>
0
&&
*
p
==
0
)
if
(
argc
==
1
&&
((
strtoul
(
argv
[
0
],
&
p
,
10
)
>
0
&&
*
p
==
0
)
||
(
argv
[
0
][
1
]
==
0
&&
strchr
(
"^$"
,
argv
[
0
][
0
]))))
{
asprintf
(
&
p
,
"print %s"
,
argv
[
0
]);
mu_argcv_free
(
argc
,
argv
);
...
...
Please
register
or
sign in
to post a comment