On 01/26/12 22:59, Robert Dodier wrote:
> On 1/26/12, Thomas D. Dean<tomdean at speakeasy.org> wrote:
>
>> pattern=`printf "\r$"` ; bad_files=`find . -name '*.texi' -print |
>> xargs /usr/bin/grep -E -l -e "$pattern"` ; [ -z "$bad_files" ] || (
>> echo "WARNING: The following files have DOS-style EOLs: $bad_files" ;
>> echo "Run /doc/info/fix_crlf to fix the problem." )
>> *** Error code 1
>
> I guess this means the shell interpreter didn't like that command.
> Is grep not in /usr/bin? does it not take -E -l -e as arguments?
> or the conditional expression is not recognized? Just guessing.
>
I used sh
# cd doc/info
# pattern=`printf "\r$"`
# bad_files=`find . -name '*.texi' -print | xargs /usr/bin/grep -E -l -e
"$pattern"`
# echo $bad_files
bad_files is empty
# which grep
/usr/bin/grep
# grep --version
grep (GNU grep) 2.5.1-FreeBSD
Which allows -E -l -e
I started fresh.
No problem.
Maybe something strange in unpacking/configure/code-rot?
make check passed, with the exception of known errors.
Thanks,
Tom Dean