mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
I *almost* had it right. Skip over the rest of the command if it's
abbreviated.
This commit is contained in:
parent
0429030d68
commit
501cc59d80
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4416
@ -38,7 +38,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: userconfig.c,v 1.12 1994/11/13 00:43:29 jkh Exp $
|
||||
* $Id: userconfig.c,v 1.13 1994/11/13 00:57:06 jkh Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -159,7 +159,9 @@ parse_cmd(char *cmd)
|
||||
int len = strlen(cp->name);
|
||||
|
||||
if (!strncmp(cp->name, cmd, len)) {
|
||||
if (parse_args(cmd + len, cp->parms))
|
||||
while (*cmd && *cmd != ' ' && *cmd != '\t')
|
||||
++cmd;
|
||||
if (parse_args(cmd, cp->parms))
|
||||
return NULL;
|
||||
else
|
||||
return cp;
|
||||
|
Loading…
Reference in New Issue
Block a user