mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Merge branch 'main' into tail_notify
This commit is contained in:
commit
4cb6b094f5
4 changed files with 18 additions and 2 deletions
|
@ -166,6 +166,7 @@ pub fn uu_app<'a>() -> Command<'a> {
|
||||||
.long("sh")
|
.long("sh")
|
||||||
.short('b')
|
.short('b')
|
||||||
.visible_alias("bourne-shell")
|
.visible_alias("bourne-shell")
|
||||||
|
.overrides_with(options::C_SHELL)
|
||||||
.help("output Bourne shell code to set LS_COLORS")
|
.help("output Bourne shell code to set LS_COLORS")
|
||||||
.display_order(1),
|
.display_order(1),
|
||||||
)
|
)
|
||||||
|
@ -174,6 +175,7 @@ pub fn uu_app<'a>() -> Command<'a> {
|
||||||
.long("csh")
|
.long("csh")
|
||||||
.short('c')
|
.short('c')
|
||||||
.visible_alias("c-shell")
|
.visible_alias("c-shell")
|
||||||
|
.overrides_with(options::BOURNE_SHELL)
|
||||||
.help("output C shell code to set LS_COLORS")
|
.help("output C shell code to set LS_COLORS")
|
||||||
.display_order(2),
|
.display_order(2),
|
||||||
)
|
)
|
||||||
|
|
|
@ -21,7 +21,7 @@ mod options {
|
||||||
|
|
||||||
fn get_long_usage() -> String {
|
fn get_long_usage() -> String {
|
||||||
String::from(
|
String::from(
|
||||||
"Output each NAME with its last non-slash component and trailing slashes
|
"Output each NAME with its last non-slash component and trailing slashes \n\
|
||||||
removed; if NAME contains no /'s, output '.' (meaning the current directory).",
|
removed; if NAME contains no /'s, output '.' (meaning the current directory).",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -573,7 +573,7 @@ pub fn uu_app<'a>() -> Command<'a> {
|
||||||
.short('s')
|
.short('s')
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.long(options::SLEEP_INT)
|
.long(options::SLEEP_INT)
|
||||||
.help("Number or seconds to sleep between polling the file when running with -f"),
|
.help("Number of seconds to sleep between polling the file when running with -f"),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(options::MAX_UNCHANGED_STATS)
|
Arg::new(options::MAX_UNCHANGED_STATS)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// spell-checker:ignore overridable
|
||||||
use crate::common::util::*;
|
use crate::common::util::*;
|
||||||
|
|
||||||
extern crate dircolors;
|
extern crate dircolors;
|
||||||
|
@ -78,6 +79,19 @@ fn test_csh_default() {
|
||||||
.run()
|
.run()
|
||||||
.stdout_is_fixture("csh_def.expected");
|
.stdout_is_fixture("csh_def.expected");
|
||||||
}
|
}
|
||||||
|
#[test]
|
||||||
|
fn test_overridable_args() {
|
||||||
|
new_ucmd!()
|
||||||
|
.env("TERM", "screen")
|
||||||
|
.arg("-bc")
|
||||||
|
.run()
|
||||||
|
.stdout_is_fixture("csh_def.expected");
|
||||||
|
new_ucmd!()
|
||||||
|
.env("TERM", "screen")
|
||||||
|
.arg("-cb")
|
||||||
|
.run()
|
||||||
|
.stdout_is_fixture("bash_def.expected");
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_no_env() {
|
fn test_no_env() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue