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


Reply via email to