bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test-vc-cvs [was: IRIX failures]


From: Eric Blake
Subject: Re: test-vc-cvs [was: IRIX failures]
Date: Thu, 02 Sep 2010 14:53:18 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

On 09/02/2010 08:25 AM, Eric Blake wrote:
Next, your trace showed the cause of the first message:

+mktempd_:51> template_length_=+mktempd_:1> wc -c
+mktempd_:51> template_length_=' 16'
+mktempd_:52> nx_=+mktempd_:1> echo gt-init.sh.
+mktempd_:52> nx_=+mktempd_:1> wc -c
+mktempd_:52> nx_=' 12'
+mktempd_:53> nx_=+mktempd_:1> expr ' 16' - ' 12'
non-numeric argument

So wc is outputting space-padded results, and expr doesn't like the
leading spaces.

But the leading spaces wouldn't have been there in the first place, if zsh had properly been in POSIX mode. (I'll never know why zsh thinks that inhibiting field splitting by default makes sense for portability matters.) With a proper shell, expr would never have seen leading spaces in the first place to complain of a non-numeric argument.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]