Subject: bin/23813: minor optimization to sh's expansion
To: None <gnats-bugs@gnats.netbsd.org>
From: None <vax@carolina.rr.com>
List: netbsd-bugs
Date: 12/20/2003 23:50:48
>Number:         23813
>Category:       bin
>Synopsis:       minor optimization to sh's expansion
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 21 05:05:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     VaX#n8
>Release:        NetBSD 1.5.1
>Organization:
	
>Environment:
	


>Description:
	
>How-To-Repeat:
	
>Fix:
	

--- expand.c~	Sat Dec 20 23:48:37 2003
+++ expand.c	Sat Dec 20 23:48:59 2003
@@ -634,9 +634,7 @@
 	varflags = *p++;
 	subtype = varflags & VSTYPE;
 	var = p;
-	special = 0;
-	if (! is_name(*p))
-		special = 1;
+	special = !is_name(*p);
 	p = strchr(p, '=') + 1;
 again: /* jump here after setting a variable with ${var=text} */
 	if (special) {
>Release-Note:
>Audit-Trail:
>Unformatted: