summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2016-07-26 19:27:18 +0200
committerMartin Väth <martin@mvath.de>2016-07-26 19:27:18 +0200
commit84ad556476ca3b71c625df9f6009dbc9fea523f0 (patch)
tree7fc999b80d4978d15e0c44a3c7faee6cfd3ad487 /app-shells/schily-tools/files
parentapp-shells/schily-tools: Version bump (diff)
downloadmv-84ad556476ca3b71c625df9f6009dbc9fea523f0.tar.gz
mv-84ad556476ca3b71c625df9f6009dbc9fea523f0.tar.bz2
mv-84ad556476ca3b71c625df9f6009dbc9fea523f0.zip
app-shells/schily-tools: Fix "read", set POSIX_BOTH_PATH
Diffstat (limited to 'app-shells/schily-tools/files')
-rw-r--r--app-shells/schily-tools/files/fix_read.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/app-shells/schily-tools/files/fix_read.patch b/app-shells/schily-tools/files/fix_read.patch
new file mode 100644
index 00000000..5d1e2f08
--- /dev/null
+++ b/app-shells/schily-tools/files/fix_read.patch
@@ -0,0 +1,25 @@
+# Fix "read a" (with one variable) in bosh
+--- 1/sh/name.c
++++ 1/sh/name.c
+@@ -527,7 +527,7 @@
+ else if (ch == 'r')
+ nextwchar = readwc;
+ }
+- namec -= optv.optind;
++ namec -= --optv.optind;
+ names += optv.optind;
+ }
+
+@@ -535,10 +535,9 @@
+ a[0] = UC repname;
+ a[1] = NULL;
+ names = a;
+- }
+-#else
+- names++;
++ } else
+ #endif
++ names++;
+ ifs = ifsnod.namval;
+ if (ifs == NULL)
+ ifs = (unsigned char *)sptbnl;