commit 3b3646effb548d2af894422f2123dd7976d7f1af
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Sun Jul 23 22:33:28 2017 +0200
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Sun Jul 23 22:33:28 2017 +0200
blind-primary-key: remove ./ and make more portable
Signed-off-by: Mattias Andrée <maandree_AT_kth.se>
diff --git a/blind-primary-key b/blind-primary-key
index 40dd0fe..cbf421a 100755
--- a/blind-primary-key
+++ b/blind-primary-key
_AT_@ -27,12 +27,12 @@ while ! test $# = 0; do
if test "$1" = --; then
shift 1
break
- elif test "${1::1}" = -; then
- arg="${1:1}"
+ elif test "$(printf '%s\n' "$1" | sed 's/^\(.\).*$/\1/')" = -; then
+ arg="$(printf '%s\n' "$1" | sed 's/^.//')"
shift 1
- while test -n "${arg::1}"; do
- flag="${arg::1}"
- arg="${arg:1}"
+ while test -n "$arg"; do
+ flag="$(printf '%s\n' "$arg" | sed 's/^\(.\).*$/\1/')"
+ arg="$(printf '%s\n' "$arg" | sed 's/^.//')"
if test "$flag" = 1; then
x=x; y=y; z=z
elif test "$flag" = 2; then
_AT_@ -81,7 +81,7 @@ else
unconvert () {
blind-affine-colour -al \
<(blind-from-named -a blind-${pid}-invmat \
- ./blind-arithm -xyz max <(./blind-single-colour -w 3 -h 3 1) | \
+ blind-arithm -xyz max <(blind-single-colour -w 3 -h 3 1) | \
blind-repeat inf -)
}
fi
Received on Sun Jul 23 2017 - 23:07:29 CEST
This archive was generated by hypermail 2.3.0
: Sun Jul 23 2017 - 23:13:13 CEST