summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/makeabs
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/unix/makeabs')
-rwxr-xr-xconfig.tests/unix/makeabs9
1 files changed, 1 insertions, 8 deletions
diff --git a/config.tests/unix/makeabs b/config.tests/unix/makeabs
index d2f65d19e9..f1d8a4056f 100755
--- a/config.tests/unix/makeabs
+++ b/config.tests/unix/makeabs
@@ -2,14 +2,7 @@
FILE="$1"
RES="$FILE"
-
-CUT_ARG="-b1"
-if [ `uname -s` = "QNX" ]; then
- # QNX does not understand "-b1"
- CUT_ARG="-c1"
-fi
-
-if [ `echo $FILE | cut $CUT_ARG` = "/" ]; then
+if [ -z "${FILE##/*}" ]; then
true
elif [ "$OSTYPE" = "msys" -a -z "${FILE##[a-zA-Z]:[/\\]*}" ]; then
true