From: Paul Eggert Date: Wed, 8 Dec 2004 20:33:11 +0000 (+0000) Subject: Don't use "set - x`$ls_command /`", as zsh mishandles X-Git-Tag: Release-1-9b~243 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=49ab4871298a4ffc545624a3db95a59ccc9d1a25;p=automake.git Don't use "set - x`$ls_command /`", as zsh mishandles the spaces inside $ls_command. Problem reported by Loulou Pouchet in . Don't use "set - x"; plain "set x" is enough, and simplifies debugging. --- diff --git a/lib/mdate-sh b/lib/mdate-sh index 05e828b0..881782eb 100755 --- a/lib/mdate-sh +++ b/lib/mdate-sh @@ -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 , 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