1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/shells/pdksh/files/patch-eval.c
Thomas Gellekum d1ef1a5423 Fix ${name:?word} substitution. Bump PORTREVISION.
Submitted by:	Marc Olzheim (marcolz at stack dot nl)
Obtained from:	OpenBSD PR user/4023
2005-11-02 12:24:31 +00:00

12 lines
296 B
C

Index: eval.c
--- eval.c 25 Nov 2004 04:36:47 -0000 1.15
+++ eval.c 7 Dec 2004 16:20:20 -0000
@@ -792,6 +792,7 @@
}
if (e->loc->argc == 0) {
xp->str = null;
+ xp->var = global(sp);
state = c == '@' ? XNULLSUB : XSUB;
} else {
xp->u.strv = (const char **) e->loc->argv + 1;