Yes, on second thought I'm just going to revert that commit.
This is something that should be done by the shell.
But further comments welcome ...
+++ Shahbaz Youssefi [Jan 06 16 13:51 ]:
> It's Bad(TM) that windows would force every program to implement its
> own wildcard expansion. I'm not sure if it makes sense to expand
> wildcards in pandoc just for windows, it being clearly not
> cli-friendly.
> However. if you do want to go down that road, here are some things to
> look out for:
> - **Make sure it only comes in effect under windows, and only with
> cmd.exe (and power shell apparently)**. Under posix shells (including
> bash in cygwin), if you get `*.md`, then the user has probably
> specifically didn't want wildcard expansion (for example by `pandoc
> "*.md"`).
> - Make sure the expansion matches what other shells do (partial
> coverage for bash: [1]
http://tldp.org/LDP/abs/html/globbingref.html).
> On 1/6/16, Shahbaz Youssefi <[3]
sha...@gmail.com> wrote:
> > This might be informative [4]
http://superuser.com/q/460598/105764
> >
> > Yet another -1 to windows.
> >
> > On Wed, Jan 6, 2016 at 10:21 AM, John MacFarlane
> <[5]
j...@berkeley.edu> wrote:
> >
> >> Okay, that's very interesting. I guess I'd never tried
> >> using a * wildcard with pandoc on Windows.
> >>
> >> On linux and OSX, the shell expands the "*.md" before it
> >> even gets to pandoc. Pandoc just sees a list of regular
> >> filenames. Apparently it doesn't work that way on Windows:
> >> getArgs just returns ["*.md"], so I guess it's up to
> >> the program to do wildcard expansion?
> >>
> >> Is there anyone out who has experience with this?
> >>
> >>
> >> +++ Pawel Urbanski [Jan [6]06 16 03:46 ]:
> >>
> >>> Dear John,
> >>> I created the files with Notepad++. The encoding is set to UTF-8
> >>> without BOM. Additionally, I used the conversion feature to make
> sure
> >>> that encoding is correct. Files do get converted individually
> without
> >>> errors.
> >>> Here is the error output with the command:
> >>> D:\projects\Publishing\pd>pandoc *.md -o test.html
> >>> pandoc: *.md: openFile: invalid argument (Invalid argument)
> >>> Command line parameters are separated by spaces - not tabs by any
> >>> chance or mistake.
> >>> Hope that gives a hint... And thank you for help.
> >>> Pawel
> >>>
> >>> --
> >>> You received this message because you are subscribed to the
> Google
> >>> Groups "pandoc-discuss" group.
> >>> To unsubscribe from this group and stop receiving emails from it,
> send
> >>> an email to [1][7]
pandoc-discus...@googlegroups.com.
> >>> To post to this group, send email to
> >>> [2][8]
pandoc-...@googlegroups.com.
> >>> To view this discussion on the web visit
> >>>
> >>>
> >>> For more options, visit
> [4][11]
https://groups.google.com/d/optout.
> >>>
> >>> References
> >>>
> >>> 4. [15]
https://groups.google.com/d/optout
> >>>
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "pandoc-discuss" group.
> >> To unsubscribe from this group and stop receiving emails from it,
> send an
> >> email to [16]
pandoc-discus...@googlegroups.com.
> >> To post to this group, send email to
> [17]
pandoc-...@googlegroups.com.
> >> To view this discussion on the web visit
> >>
> [18]
https://groups.google.com/d/msgid/pandoc-discuss/20160106152121.GD7
> 1895%40MacBook-Air-2.local
> >> .
> >>
> >> For more options, visit [19]
https://groups.google.com/d/optout.
> >>
> >
> > --
>
> > You received this message because you are subscribed to a topic in
> the
> > Google Groups "pandoc-discuss" group.
> > To unsubscribe from this topic, visit
> >
> [20]
https://groups.google.com/d/topic/pandoc-discuss/eMfCGU3Gn8E/uns
> ubscribe.
> > To unsubscribe from this group and all its topics, send an email
> to
> > [21]
pandoc-discus...@googlegroups.com.
> > To post to this group, send email to
> [22]
pandoc-...@googlegroups.com.
> > To view this discussion on the web visit
> >
> [23]
https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ_0DtG7wR
> mY%2BkRvYMw_Cg06sNZMzt7%3D4DJF%3Dz5jj9q%3D3Q%
40mail.gmail.com.
> > For more options, visit [24]
https://groups.google.com/d/optout.
> >
> --
> You received this message because you are subscribed to the Google
> Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to [25]
pandoc-discus...@googlegroups.com.
> To post to this group, send email to
> [26]
pandoc-...@googlegroups.com.
> To view this discussion on the web visit
> [27]
https://groups.google.com/d/msgid/pandoc-discuss/CA%2BSM%2BE%2BV
> Ea8PcZJAZjw-WHXMP2RN-XZ%2BL70VNeLB%3DBGn4botJQ%
40mail.gmail.com.
>
> For more options, visit [28]
https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google
> Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [29]
pandoc-discus...@googlegroups.com.
> To post to this group, send email to
> [30]
pandoc-...@googlegroups.com.
> To view this discussion on the web visit