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

Re: [PATCH] Shell utilities: Guard against expr' magic tokens.

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

Mark Wooding [off-list ref] writes:
From: Mark Wooding <redacted>

Some words, e.g., `match', are special to expr(1), and cause strange
parsing effects.  Track down all uses of expr and mangle the arguments
so that this isn't a problem.
Gaaaaaaaaaah.  

    http://www.opengroup.org/onlinepubs/009695399/utilities/expr.html

says use of length, substr, index, match as string arguments
produces unspecified results, so obviously the program was
wrong.

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