[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is / distinct from //?
From: |
Paul Eggert |
Subject: |
Re: Is / distinct from //? |
Date: |
Mon, 18 Dec 2006 00:08:05 -0800 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Paul Gilmartin <address@hidden> writes:
> Just thought you'd like to know,
Yes. We can fix this in m4/double-slash-root.m4. Can you please
confirm the following?
1. If you run this shell command:
wc //dev/null >/dev/null 2>&1
echo status = $?
then the output is "status = 1" or some nonzero status like that.
2. In coreutils, the command build-aux/config.guess outputs
"i370-ibm-openedition".
If my guesses are right, the following patch should work, but I'd
like you to confirm my guesses before installing this. Thanks.
2006-12-17 Paul Eggert <address@hidden
* m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
Port to z/OS. Problem reported by Paul Gilmartin.
--- m4/double-slash-root.m4.~1.1.~ 2006-07-03 01:32:46.000000000 -0700
+++ m4/double-slash-root.m4 2006-12-17 23:20:58.000000000 -0800
@@ -1,4 +1,4 @@
-#serial 1 -*- autoconf -*-
+#serial 2 -*- autoconf -*-
dnl Copyright (C) 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -11,12 +11,12 @@ AC_DEFUN([gl_DOUBLE_SLASH_ROOT],
[ if test x"$cross_compiling" = xyes ; then
# When cross-compiling, there is no way to tell whether // is special
# short of a list of hosts. However, the only known hosts to date
- # that have a distinct // are Apollo DomainOS (too old to port to)
- # and Cygwin. If anyone knows of another system for which // has
+ # that have a distinct // are Apollo DomainOS (too old to port to),
+ # Cygwin, and z/OS. If anyone knows of another system for which // has
# special semantics and is distinct from /, please report it to
# <address@hidden>.
case $host in
- *-cygwin)
+ *-cygwin | i370-ibm-openedition)
ac_cv_double_slash_root=yes ;;
*)
# Be optimistic and assume that / and // are the same when we
@@ -25,7 +25,7 @@ AC_DEFUN([gl_DOUBLE_SLASH_ROOT],
esac
else
set x `ls -di / //`
- if test $[2] = $[4]; then
+ if test $[2] = $[4] && wc //dev/null >/dev/null 2>&1; then
ac_cv_double_slash_root=no
else
ac_cv_double_slash_root=yes
- Re: Is / distinct from //?,
Paul Eggert <=