Re: CVS commit: src/external/bsd/kyua-atf-compat/dist
On Feb 25, 2013, at 13:54, David Holland dholland-sourcechan...@netbsd.org wrote: On Mon, Feb 25, 2013 at 06:49:51PM +, Julio Merino wrote: Log Message: Cherry-pick upstream change d0daf9983f5a0e635f1127dbc827aa114daa90d8: Fix broken variable parsing with NetBSD's /bin/sh Quote the expansion of a $() command that was not properly surrounded by quotes so that this runs properly with NetBSD's /bin/sh. In what way was it broken? (And where's the PR?) FTR: bin/47597
Re: CVS commit: src/external/bsd/kyua-atf-compat/dist
On Feb 25, 2013, at 15:40, Valeriy E. Ushakov u...@stderr.spb.ru wrote: On Mon, Feb 25, 2013 at 18:49:51 +, Julio Merino wrote: Module Name: src Committed By:jmmv Date:Mon Feb 25 18:49:51 UTC 2013 Modified Files: src/external/bsd/kyua-atf-compat/dist: atf-run.sh Log Message: Cherry-pick upstream change d0daf9983f5a0e635f1127dbc827aa114daa90d8: Fix broken variable parsing with NetBSD's /bin/sh Quote the expansion of a $() command that was not properly surrounded by quotes so that this runs properly with NetBSD's /bin/sh. grep|sed pipeline is ok on a command line where one is lazy, in a script it should be just sed :) Heh, very true. I'll try to play with this a bit later. Your $ws doesn't do what you expect it to do. Try your command on a line that actually has tabs. This is because backslash has no special meaning inside [], so your \t is not a tab, but either a backslash or a letter 't'. Thanks; this should be fixed now.
Re: CVS commit: src/external/bsd/kyua-atf-compat/dist
On Feb 25, 2013, at 14:01, Paul Goyette p...@whooppee.com wrote: On Mon, 25 Feb 2013, David Holland wrote: On Mon, Feb 25, 2013 at 06:49:51PM +, Julio Merino wrote: Log Message: Cherry-pick upstream change d0daf9983f5a0e635f1127dbc827aa114daa90d8: Fix broken variable parsing with NetBSD's /bin/sh Quote the expansion of a $() command that was not properly surrounded by quotes so that this runs properly with NetBSD's /bin/sh. In what way was it broken? (And where's the PR?) And when do we get a regression test case to detect it? Whenever we decide what the behavior should be! See the discussion that the PR started.
Re: CVS commit: src/external/bsd/kyua-atf-compat/dist
On Tue, Feb 26, 2013 at 03:23:19PM +, Julio Merino wrote: Module Name: src Committed By: jmmv Date: Tue Feb 26 15:23:19 UTC 2013 Modified Files: src/external/bsd/kyua-atf-compat/dist: atf-run.sh atf-run_test.sh Log Message: Cherry-pick upstream change 70aefdbe5b843d6b24b5a9b816e47f2fb026dde2: Properly handle tabs when parsing config files Backslashes within [] in a regexp don't have any meaning, so [ \t] did not have the intended effect of being evaluated to a space and a tab. Fix this by writing an actual tab in the regexp. Problem found by Valeriy E. Ushakov. It may be better to use the POSIX character class [[:space:]] rather than embedded spaces and tabs (which may not cut and paste well), and which make it more obvious what actually is wanted. Best, Alistair