From 0149740be96add1bf7fbbefeec64679e2007fb2d Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sun, 6 Apr 2008 00:34:50 +0200 Subject: [PATCH] Fix quoting in double-slash-root.m4. * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting, hide error from 'ls', needed on OS/2. Report by Elbert Pol . Signed-off-by: Ralf Wildenhues --- ChangeLog | 6 ++++++ m4/double-slash-root.m4 | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4d391603ce..1848b05ec1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-04-06 Ralf Wildenhues + + * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting, + hide error from 'ls', needed on OS/2. + Report by Elbert Pol . + 2008-04-04 Eric Blake Make test-fseeko.c failures meaningful. diff --git a/m4/double-slash-root.m4 b/m4/double-slash-root.m4 index 69d60d011e..23bf5b0cac 100644 --- a/m4/double-slash-root.m4 +++ b/m4/double-slash-root.m4 @@ -1,5 +1,5 @@ -# double-slash-root.m4 serial 2 -*- Autoconf -*- -dnl Copyright (C) 2006 Free Software Foundation, Inc. +# double-slash-root.m4 serial 3 -*- Autoconf -*- +dnl Copyright (C) 2006, 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -24,8 +24,8 @@ AC_DEFUN([gl_DOUBLE_SLASH_ROOT], gl_cv_double_slash_root='unknown, assuming no' ;; esac else - set x `ls -di / //` - if test $[2] = $[4] && wc //dev/null >/dev/null 2>&1; then + set x `ls -di / // 2>/dev/null` + if test "$[2]" = "$[4]" && wc //dev/null >/dev/null 2>&1; then gl_cv_double_slash_root=no else gl_cv_double_slash_root=yes -- 2.30.2