changeset 9873:33b72b2be729

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 <elbert.pol@gmail.com>. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
author Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
date Sun, 06 Apr 2008 00:34:50 +0200
parents 8724fb6c1548
children b6ae7b58fba1
files ChangeLog m4/double-slash-root.m4
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	* m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
+	hide error from 'ls', needed on OS/2.
+	Report by Elbert Pol <elbert.pol@gmail.com>.
+
 2008-04-04  Eric Blake  <ebb9@byu.net>
 
 	Make test-fseeko.c failures meaningful.
--- 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 @@
 	    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