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

Bug#868470: dh-ocaml: Incorrect usage of doit (Dh_Lib)



Package: dh-ocaml
Version: 1.0.10
Severity: important

Hi,

There is bug in dh_ocaml, which is hidden by bug in Dh_lib.  I intend
to fix the latter soon, which will cause issues in dh_ocaml once that
happens.  This bug is here:

>     close(OLIST) unless $dh{NO_ACT};
>     doit("cat $olist_fn") if $dh{VERBOSE};
           ^^^^^^^^^^^^^^^
>   };

The API of doit intends for it to *not* fork a shell, but the above
only works in a shell call.  In the concrete case, please use:

  doit('cat', $olist_fn) if $dh{VERBOSE};

Thanks,
~Niels


Reply to: