SOURCES: klibc-kill_bashism.patch (REMOVED) - last change reverted...

Elan Ruusamäe glen at delfi.ee
Fri Sep 30 15:32:37 CEST 2005


On Friday 30 September 2005 16:24, pluto wrote:
> Author: pluto                        Date: Fri Sep 30 13:24:37 2005 GMT
> Module: SOURCES                       Tag: HEAD
> ---- Log message:
> - last change reverted. this is not a bashism. ksh bug?
>   testcase:
>    echo '[ "foo" = "bar" -a "-u" = "zoo" ]'|/bin/sh
>    /bin/sh: <stdin>[1]: [: zoo: unexpected operator/operand

man test:
       -u FILE
              FILE exists and its set-user-ID bit is set

alternatives:
echo '[ "foo" = "bar" ] && [ "-u" = "zoo" ]'|/bin/sh
echo '[ "foo" = "bar" -a x"-u" = x"zoo" ]'|/bin/sh

>
> ---- Files affected:
> SOURCES:
>    klibc-kill_bashism.patch (1.1 -> NONE)  (REMOVED)
>
> ---- Diffs:
> ================================================================
> _______________________________________________
> pld-cvs-commit mailing list
> pld-cvs-commit at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

-- 
glen



More information about the pld-devel-en mailing list