Re: [autoconf 2.59] Bug with bash on FreeBSD.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Loulou Pouchet" <loulou@xxxxxxxxxxxxx> writes:

> ../config/mdate-sh:shift:90: shift count must be <= $#
> ../config/mdate-sh:shift:90: shift count must be <= $#

Thanks for tracking this down.  This is due to an incompatibility of
zsh with POSIX shells.  I installed this patch into the Automake and
Autoconf main branches.


2004-12-08  Paul Eggert  <eggert@xxxxxxxxxxx>

	* lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
	the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
	<http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
	Don't use "set - x"; plain "set x" is enough, and simplifies debugging.

Index: mdate-sh
===================================================================
RCS file: /cvsroot/autoconf/autoconf/config/mdate-sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -p -u -r1.4 -r1.5
--- mdate-sh	27 Jan 2004 19:25:05 -0000	1.4
+++ mdate-sh	8 Dec 2004 20:34:37 -0000	1.5
@@ -1,9 +1,9 @@
 #!/bin/sh
 # Get modification time of a file or directory and pretty-print it.
 
-scriptversion=2003-11-09.00
+scriptversion=2004-12-08.12
 
-# Copyright (C) 1995, 1996, 1997, 2003  Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2003, 2004 Free Software Foundation, Inc.
 # written by Ulrich Drepper <drepper@xxxxxxxxxxxxxx>, June 1995
 #
 # This program is free software; you can redistribute it and/or modify
@@ -80,7 +80,7 @@ fi
 # words should be skipped to get the date.
 
 # On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below.
-set - x`$ls_command /`
+set x`ls -l -d /`
 
 # Find which argument is the month.
 month=
@@ -107,7 +107,7 @@ do
 done
 
 # Get the extended ls output of the file or directory.
-set - x`eval "$ls_command \"\$save_arg1\""`
+set x`eval "$ls_command \"\$save_arg1\""`
 
 # Remove all preceding arguments
 eval $command


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux