summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/makeabs
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/unix/makeabs')
-rwxr-xr-xconfig.tests/unix/makeabs8
1 files changed, 7 insertions, 1 deletions
diff --git a/config.tests/unix/makeabs b/config.tests/unix/makeabs
index 9d6610814..c415cc7bd 100755
--- a/config.tests/unix/makeabs
+++ b/config.tests/unix/makeabs
@@ -3,7 +3,13 @@
FILE="$1"
RES="$FILE"
-if [ `echo $FILE | cut -b1` = "/" ]; then
+CUT_ARG="-b1"
+if [ `uname -s` = "QNX" ]; then
+ # QNX does not understand "-b1"
+ CUT_ARG="-c1"
+fi
+
+if [ `echo $FILE | cut $CUT_ARG` = "/" ]; then
true
else
RES="$PWD/$FILE"