Subject: bug#24428: 25.1; batch-byte-recompile-directory no longer works as it should

From: Eli Zaretskii <[email-masked]>
Date: Wed, 14 Sep 2016 20:34:49 +0300

> From: John Wiegley <[email-masked]>
> Date: Tue, 13 Sep 2016 10:48:05 -0700
> 
> It seems that `batch-byte-recompile-directory' now doubles the argument
> somehow.  I was unable to track down the commit where this was introduced, but
> this is happening in a Makefile that worked for years until recently:
> 
> --8<---------------cut here---------------start------------->8---
> 10:42:49 Vulcan:~/.emacs.d $ emacs -Q -batch -L . --eval '(batch-byte-recompile-directory 0)' lib
> Checking /Users/johnw/.emacs.d/lib/lib...
> Error: Opening directory: no such file or directory, /Users/johnw/.emacs.d/lib/lib
> Done (Total of 0 files compiled)
> --8<---------------cut here---------------end--------------->8---
> 
> Notice the 'lib/lib' there.  Using `byte-recompile-directory' interactively
> from within a running Emacs works fine, however.

I cannot reproduce this, FWIW.  It works here as expected.  Can you
look deeper, e.g. what arguments does batch-byte-recompile-directory
get invoked with?