Package: mksh
Version: 59c-14
Severity: normal
In the mksh(1) man page:
SYNOPSIS
mksh [-+abCefhiklmnprUuvXx] [-T [!]tty | -] [-+o option] [-c string | -s
| file [argument ...]]
[...]
-c string mksh will execute the command(s) contained in string.
This is incorrect. "-c" is not an option that takes a string argument,
but an option that takes 0 arguments: when one writes "mksh -c foo",
"foo" is an argument of mksh, not an argument of the -c option.
The difference is that one may have other options between "-c" and
the actual arguments. So
mksh -c -- "echo foo"
will execute "echo foo", not "--".
As a comparison, see the bash(1), dash(1) and ksh93(1) man pages.
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500,
'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.14.0-4-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages mksh depends on:
ii libc6 2.32-4
Versions of packages mksh recommends:
ii ed 1.17-1
mksh suggests no packages.
-- no debconf information
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)