Module Topkg.Cmd
Command lines.
Both command lines and command line fragments using the same are represented with the same type.
When a command line is run, the first element of the line defines the program name and each other element is an argument that is passed as is in the program's argv array: no shell interpretation or any form of argument quoting and/or concatenation occurs.
Command line fragments
val v : string -> tv cmdis a new command line (or command line fragment) whose first argument iscmd.
val empty : temptyis an empty command line.
val is_empty : t -> boolis_empty listrueifflis empty.
val p : fpath -> stringpis(fun f -> f).
Predicates and comparison
Conversions and pretty printing
val to_list : t -> string listto_list lislas a list of strings.
val of_list : ?slip:string -> string list -> tof_list ?slip lis a command line from the list of argumentsl. Ifslipis specified it is added on the command line before each element ofl.
val dump : Stdlib.Format.formatter -> t -> unitdump ppf cmdformats an unspecified representation ofcmdonppf.