mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tail: allow multiple usage of --pid to match upstream (regression of 9.5)
tested by tests/tail/pid
This commit is contained in:
parent
8ae8de0cad
commit
f0286eb77d
2 changed files with 9 additions and 1 deletions
|
@ -510,7 +510,8 @@ pub fn uu_app() -> Command {
|
||||||
Arg::new(options::PID)
|
Arg::new(options::PID)
|
||||||
.long(options::PID)
|
.long(options::PID)
|
||||||
.value_name("PID")
|
.value_name("PID")
|
||||||
.help("With -f, terminate after process ID, PID dies"),
|
.help("With -f, terminate after process ID, PID dies")
|
||||||
|
.overrides_with(options::PID),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(options::verbosity::QUIET)
|
Arg::new(options::verbosity::QUIET)
|
||||||
|
|
|
@ -3908,6 +3908,13 @@ fn test_args_when_settings_check_warnings_then_shows_warnings() {
|
||||||
.args(&["--pid=1000", "--retry", "data"])
|
.args(&["--pid=1000", "--retry", "data"])
|
||||||
.stderr_to_stdout()
|
.stderr_to_stdout()
|
||||||
.run()
|
.run()
|
||||||
|
.stdout_only(&expected_stdout)
|
||||||
|
.success();
|
||||||
|
scene
|
||||||
|
.ucmd()
|
||||||
|
.args(&["--pid=1000", "--pid=1000", "--retry", "data"])
|
||||||
|
.stderr_to_stdout()
|
||||||
|
.run()
|
||||||
.stdout_only(expected_stdout)
|
.stdout_only(expected_stdout)
|
||||||
.success();
|
.success();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue