[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] gnulib-tool: fix for platforms with bash 2.x
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] gnulib-tool: fix for platforms with bash 2.x |
Date: |
Mon, 23 Oct 2006 18:11:33 +0200 |
User-agent: |
KMail/1.9.1 |
Daniel Jacobowitz wrote:
> > ! echo " @MOSTLYCLEANDIRS=\"\$(MOSTLYCLEANDIRS)\" \\"
I think a semicolon is missing after the assignment.
> > ! echo " test -z \"\$\$MOSTLYCLEANDIRS\" || \\"
This is not needed usually (except if you care about very old shells).
> > ! echo " for dir in \$\$MOSTLYCLEANDIRS; do \\"
> > ! echo " if test -d \$\$dir; then \\"
> > ! echo " echo \"rmdir \$\$dir\"; rmdir \$\$dir; \\"
> > ! echo " fi; \\"
> > ! echo " done"
>
> (Of course there are different failure modes for directories containing
> special characters for both alternatives.)
Yes. Looks like a tie.
Bruno