man: added missing information to cmd man page

This commit is contained in:
Valerie Wolfe 2024-08-22 10:14:58 -04:00
parent 392c3f9230
commit 99f7ed5726

View file

@ -8,7 +8,7 @@
.Nm .Nm
.Op Fl DQ .Op Fl DQ
.Op Fl A|U .Op Fl A|U
.Op Fl C|K Ar command .Op Oo Fl S Oc Fl C|K Ar command
.Op Fl E Ns = Ns Ar ON|OFF .Op Fl E Ns = Ns Ar ON|OFF
.Op Fl T Ns = Ns Ar fb .Op Fl T Ns = Ns Ar fb
.Op Fl V Ns = Ns Ar ON|OFF .Op Fl V Ns = Ns Ar ON|OFF
@ -16,28 +16,40 @@
.Nm .Nm
is a Linux wrapper for Windows Command Prompt. Its options are as follows: is a Linux wrapper for Windows Command Prompt. Its options are as follows:
.Bl -tag -width Ds .Bl -tag -width Ds
.It Fl ?
Displays a fairly unhelpful and incomplete help text.
.It Fl A .It Fl A
Standard outputs will be redirected in ANSI. Standard outputs will be redirected in ANSI.
.It Fl C Ar command .It Fl C Ar command
Executes the specified command and exits. Executes the specified command and exits.
.It Fl D .It Fl D
Disables autorun commands. Disables autorun commands. See
.Sx AUTORUN
below.
.It Fl E Ns = Ns Ar ON|OFF .It Fl E Ns = Ns Ar ON|OFF
Enable or disable command extensions. Enable or disable command extensions. See
.Sx COMMAND EXTENSIONS
below.
.It Fl F Ns = Ns Ar ON|OFF .It Fl F Ns = Ns Ar ON|OFF
Enable or disable filename completion. Enable or disable filename completion. See
.Sx FILENAME COMPLETION
below.
.It Fl K Ar command .It Fl K Ar command
Executes the specified command, then become interactive. Executes the specified command, then become interactive.
.It Fl Q .It Fl Q
Disables echoing commands for non-interactive modes. Disables echoing commands for non-interactive modes.
.It Fl S .It Fl S
(TODO) command string modifier? Modifies input handling. See
.Sx MODIFIED INPUT HANDLING
below.
.It Fl T Ns = Ns Ar fb .It Fl T Ns = Ns Ar fb
Output will use colors as if 'color xx' was called; the first digit sets the foreground color, and the second digit sets the background color. Output will use colors as if 'color xx' was called; the first digit sets the foreground color, and the second digit sets the background color.
.It Fl U .It Fl U
Standard outputs will be redirected in Unicode. Standard outputs will be redirected in Unicode.
.It Fl V Ns = Ns Ar ON|OFF .It Fl V Ns = Ns Ar ON|OFF
Enable or disable execution-time environment variable expansion. Enable or disable execution-time environment variable expansion. See
.Sx EXECUTION-TIME ENVIRONMENT VARIABLE EXPANSION
below.
.Sh BEHAVIORS .Sh BEHAVIORS
.Ss AUTORUN .Ss AUTORUN
Autorun is enabled by default, and can be disabled with the Autorun is enabled by default, and can be disabled with the
@ -78,6 +90,16 @@ If enabled, enclosing a variable name with '!' characters will substitute the va
Filename completion is disabled by default, and can be enabled by setting Filename completion is disabled by default, and can be enabled by setting
.Fl F Ns = Ns ON . .Fl F Ns = Ns ON .
If enabled, Ctrl-D and Ctrl-F can be used for directory and file completion respectively. If enabled, Ctrl-D and Ctrl-F can be used for directory and file completion respectively.
.Ss MODIFIED INPUT HANDLING
If the
.Fl S
flag is present, the program will strip the leading and trailing quotes from the
.Ar command
supplied to
.Fl C
or
.Fl K
and pass the remaining string literally as if it was typed directly into the prompt, ignoring special characters.
.Sh BUGS .Sh BUGS
.Nm .Nm
lacks escape characters, meaning arguments with special characters lacks escape characters, meaning arguments with special characters