summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/dispatch.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-02 10:57:58 +0000
committerjkh <jkh@FreeBSD.org>1996-07-02 10:57:58 +0000
commit0d0ea501cbd3fac1f99246b43b0f9d1130ac98ef (patch)
treee2c254c0b092f2f3faaa2cacddfc46a4c3eff8f1 /usr.sbin/sysinstall/dispatch.c
parent574bbec0321f32ff8eff088282ec23625f33d2c7 (diff)
downloadFreeBSD-src-0d0ea501cbd3fac1f99246b43b0f9d1130ac98ef.zip
FreeBSD-src-0d0ea501cbd3fac1f99246b43b0f9d1130ac98ef.tar.gz
Document shortcuts.
Fix a bug which prevented variables from working properly
Diffstat (limited to 'usr.sbin/sysinstall/dispatch.c')
-rw-r--r--usr.sbin/sysinstall/dispatch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/dispatch.c b/usr.sbin/sysinstall/dispatch.c
index ebf0d4e..5534b18 100644
--- a/usr.sbin/sysinstall/dispatch.c
+++ b/usr.sbin/sysinstall/dispatch.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: dispatch.c,v 1.2 1996/06/08 09:08:38 jkh Exp $
+ * $Id: dispatch.c,v 1.3 1996/06/26 09:09:27 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -114,13 +114,13 @@ dispatchCommand(char *str)
return DITEM_FAILURE;
}
/* A command might be a pathname if it's encoded in argv[0], as we also support */
- if ((cp = index(str, '/')) != NULL)
- str = cp + 1;
if (index(str, '=')) {
variable_set(str);
return DITEM_SUCCESS;
}
- else if (!call_possible_resword(str, NULL, &i)) {
+ else if ((cp = index(str, '/')) != NULL)
+ str = cp + 1;
+ if (!call_possible_resword(str, NULL, &i)) {
msgConfirm("No such command: %s", str);
return DITEM_FAILURE;
}
OpenPOWER on IntegriCloud