ash: "ash: syntax error: XXX unexpected" -> "ash: syntax error: unexpected XXX"
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 28 Nov 2008 03:50:46 +0000 (03:50 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 28 Nov 2008 03:50:46 +0000 (03:50 -0000)
shell/ash.c

index 05e2f630d310ab8cf13be1a8a1b02edd444f40d9..295418c04f569b21ef11360948e39c819b552975 100644 (file)
@@ -10032,7 +10032,7 @@ raise_error_unexpected_syntax(int token)
        char msg[64];
        int l;
 
-       l = sprintf(msg, "%s unexpected", tokname(lasttoken));
+       l = sprintf(msg, "unexpected %s", tokname(lasttoken));
        if (token >= 0)
                sprintf(msg + l, " (expecting %s)", tokname(token));
        raise_error_syntax(msg);