Avoid using non-portable `echo -n` in tests.
Le Friday 31 October 2008 19:39:33 Jeff King, vous avez écrit :
[...]
Quoted 4 lines
Agreed, and actually I found such a bashism (test ==) last week (though of course it also broke on FreeBSD).
As for bash-isms, a hunt for $(...) also looks necessary...
$ grep -rl '\$([^)]\+)' $(find -type f)|wc -l 272
Unless I'm mistaken (and I probably am), the $(...) construct is bash-specific, isn't it?
Signature · 1 line
fge
Quoted 7 lines · Francis Galiegue
Le Friday 31 October 2008 19:39:33 Jeff King, vous avez écrit :
[...]Quoted 4 lines
Agreed, and actually I found such a bashism (test ==) last week (though of course it also broke on FreeBSD).
Quoted 7 lines
As for bash-isms, a hunt for $(...) also looks necessary...
$ grep -rl '\$([^)]\+)' $(find -type f)|wc -l 272Unless I'm mistaken (and I probably am), the $(...) construct is bash-specific, isn't it?
Nope. Read section 2.6.3 Command Substitution here,
<http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html>
Le Friday 31 October 2008 21:11:27 Ian Hilt, vous avez écrit :
[...]
Quoted 7 lines
Quoted 3 lines
Unless I'm mistaken (and I probably am), the $(...) construct is bash-specific, isn't it?
Nope. Read section 2.6.3 Command Substitution here,
<http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html>
My bad, then. I'm too "old-school", I guess ;)
Signature · 1 line
fge
Quoted 2 lines · Francis Galiegue
Unless I'm mistaken (and I probably am), the $(...) construct is bash-specific, isn't it?
You are.