Module Name:    src
Committed By:   kre
Date:           Sun Sep 18 17:11:33 UTC 2022

Modified Files:
        src/bin/sh: var.c

Log Message:
Oops, somehow managed to commit an older version where NBSH_INVOCATION
start char was '@' rather than '!' (which meant not lexically ordered).
This is how it was intended to be (and is documented).


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/bin/sh/var.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/sh/var.c
diff -u src/bin/sh/var.c:1.81 src/bin/sh/var.c:1.82
--- src/bin/sh/var.c:1.81	Sun Sep 18 06:03:19 2022
+++ src/bin/sh/var.c	Sun Sep 18 17:11:33 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: var.c,v 1.81 2022/09/18 06:03:19 kre Exp $	*/
+/*	$NetBSD: var.c,v 1.82 2022/09/18 17:11:33 kre Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)var.c	8.3 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: var.c,v 1.81 2022/09/18 06:03:19 kre Exp $");
+__RCSID("$NetBSD: var.c,v 1.82 2022/09/18 17:11:33 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -538,7 +538,7 @@ setvar_invocation(int argc, char **argv)
 	 */
 
 	v = value;
-	*v++ = '@';		/* never empty, and the '-' is not first */
+	*v++ = '!';		/* never empty, and the '-' is not first */
 
 	if (argc > 0 && argv[0] != NULL && argv[0][0] == '-')
 		*v++ = '-';

Reply via email to