http://www.opengroup.org/onlinepubs/
009695399/utilities/test.html
catched error: ./mkbuiltins[122]: [: #: unexpected operator/operand
Changed files:
klibc-ksh-syntax.patch -> 1.1
klibc.spec -> 1.44
--- /dev/null
+This patch fixes undefined ksh behaviour -> test with >= 4 arguments.
+( http://www.opengroup.org/onlinepubs/009695399/utilities/test.html )
+
+catched error: ./mkbuiltins[122]: [: #: unexpected operator/operand
+
+--- klibc-1.1.1/ash/mkbuiltins.orig 2005-09-06 22:49:34.000000000 +0200
++++ klibc-1.1.1/ash/mkbuiltins 2005-09-30 21:41:07.909992750 +0200
+@@ -108,7 +108,7 @@
+ }
+ echo 'int '"$func"'(int, char **);' >&4
+ while
+- [ $# != 0 -a "$1" != '#' ]
++ [ $# != 0 ] && [ "$1" != '#' ]
+ do
+ [ "$1" = '-s' ] && {
+ specials="$specials $2 $func"
Patch0: %{name}-ksh-quotation.patch
Patch1: %{name}-klcc.patch
Patch2: %{name}-fstype_jfs.patch
+Patch3: %{name}-ksh-syntax.patch
URL: http://www.zytor.com/mailman/listinfo/klibc/
%{?with_dist_kernel:BuildRequires: kernel-headers >= 2.4}
BuildRequires: rpmbuild(macros) >= 1.153
%patch0 -p1
%patch1 -p1
%patch2 -p0
+%patch3 -p1
%build
cd include