projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a185f47
)
(Wordexp Example): Fix three bugs in the example code, all related to the options...
author
Ulrich Drepper
<drepper@redhat.com>
Mon, 18 Nov 2002 20:25:07 +0000
(20:25 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Mon, 18 Nov 2002 20:25:07 +0000
(20:25 +0000)
manual/pattern.texi
patch
|
blob
|
history
diff --git
a/manual/pattern.texi
b/manual/pattern.texi
index
0718ae5
..
d4f287d
100644
(file)
--- a/
manual/pattern.texi
+++ b/
manual/pattern.texi
@@
-1353,7
+1353,7
@@
to free the space allocated by @code{wordexp}.
@smallexample
int
-expand_and_execute (const char *program, const char *options)
+expand_and_execute (const char *program, const char *
*
options)
@{
wordexp_t result;
pid_t pid
@@
-1373,9
+1373,9
@@
expand_and_execute (const char *program, const char *options)
@}
/* @r{Expand the strings specified for the arguments.} */
- for (i = 0;
args[i]
; i++)
+ for (i = 0;
options[i] != NULL
; i++)
@{
- if (wordexp (options, &result, WRDE_APPEND))
+ if (wordexp (options
[i]
, &result, WRDE_APPEND))
@{
wordfree (&result);
return -1;