Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v2] Get rid of the non portable shell export VAR=VALUE costruct

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:01:22

Jonathan Nieder [off-list ref] writes:
-	/^\s*export\s+[^=]*=/ and err '"export FOO=bar" is not por...
+	/\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is n...
I see you also tightened what the "variable" to be assigned should
look like, which is a good change to avoid false positives.

Because the inter-word dash is taken as a word "\b"oundary, that
change incidentally prevents a false positive from triggering on
something like:

	git fast-export --option=value

;-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help