Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


So as long as the OS check is first, we don't evaluate $EUID except on Cygwin.

But it wasn't as such the existence or not of $EUID that was the problem here, was it? The problem 
was the use of -eq operator when the left-hand side of the operator, "$EUID" , was an empty string 
and thus not a number, no?

BTW, the "z" prefixes that Michael added are not needed. Surely all modern shells (or standalone 
test commands) handle   test "" = 0   just fine. The convention to avoid nonempty arguments to test 
is just hypercorrectness by now. (For any platform where one would seriously consider building 
LibreOffice, at least.) The configure.in script uses   test "$foo" = ""   already.

--tml



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.