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

Re: [PATCH] git-quiltimport /bin/sh-ism fix

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:02

Francis Daly [off-list ref] writes:
Bryan Wu reported
/usr/local/bin/git-quiltimport: 114: Syntax error: Missing '))'

Most bourne-ish shells I have here accept
 x=$((echo x)|cat)
but all bourne-ish shells I have here accept
 x=$( (echo x)|cat)
because $(( might mean arithmetic expansion.
Well spotted, thanks.


Sheesh, this is even warned in POSIX sh manpage.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help