104 |
return 0; |
return 0; |
105 |
} |
} |
106 |
|
|
|
/* Hitting return i.e. no command, is equivalent to next |
|
|
according to the POSIX spec. */ |
|
107 |
if (cmd[0] == '\0') |
if (cmd[0] == '\0') |
108 |
{ |
{ |
109 |
free (cmd); |
free (cmd); |
110 |
cmd = strdup ("next"); |
|
111 |
|
/* Hitting return i.e. no command, is equivalent to next |
112 |
|
according to the POSIX spec. Note, that this applies |
113 |
|
to interactive state only. */ |
114 |
|
if (interactive) |
115 |
|
cmd = strdup ("next"); |
116 |
|
else |
117 |
|
return 0; |
118 |
} |
} |
119 |
|
|
120 |
if (argcv_get (cmd, delim, NULL, &argc, &argv) == 0) |
if (argcv_get (cmd, delim, NULL, &argc, &argv) == 0) |