bug-mcron
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-i/--stdin does not do what it says


From: Fabrice BAUZAC-STEHLY
Subject: -i/--stdin does not do what it says
Date: Wed, 13 Jan 2021 22:39:26 +0100

Hello,

In mcron 1.2.0, mcron --help says:

  -i, --stdin=(guile|vixie)  Format of data passed as standard input or file
                             arguments (default guile)

As I understand it, it says that it applies on filenames on the
commandline, e.g.

  mcron --stdin=vixie myfile

"myfile" will be interpreted as being in vixie format.

But in practice this option only applies to standard input, not to
filenames on the commandline:

In the code (mcron.scm), %process-files calls process-user-file with
the guile-syntax?  parameter set to #t, effectively ignoring the
option.

The texinfo documentation also only talks about standard input:

  '-i (vixie|guile)'
  '--stdin=(vixie|guile)'
       This option is used to indicate whether the configuration
       information being passed on the standard input is in Vixie
       format or Guile format.  Guile is the default.

So I guess some fix is in order, either to let the option apply to
filenames on the commandline, or to fix the "--help" message...?  Which
way is it?

Thanks!

Best regards

-- 
Fabrice Bauzac-Stehly
PGP 01EEACF8244E9C14B551C5256ADA5F189BD322B6
old PGP 015AE9B25DCB0511D200A75DE5674DEA514C891D



reply via email to

[Prev in Thread] Current Thread [Next in Thread]