diff --git a/dev/src/uu_mktemp/mktemp.rs.html b/dev/src/uu_mktemp/mktemp.rs.html index 25de560bb..9cf20d24a 100644 --- a/dev/src/uu_mktemp/mktemp.rs.html +++ b/dev/src/uu_mktemp/mktemp.rs.html @@ -582,6 +582,13 @@ 582 583 584 +585 +586 +587 +588 +589 +590 +591
// This file is part of the uutils coreutils package.
 //
 // (c) Sunrin SHIMURA
@@ -775,7 +782,14 @@
                     (tmpdir, template.to_string())
                 }
                 Some(template) => {
-                    let tmpdir = matches.get_one::<String>(OPT_TMPDIR).map(String::from);
+                    let tmpdir = if matches.contains_id(OPT_TMPDIR) {
+                        matches.get_one::<String>(OPT_TMPDIR).map(String::from)
+                    } else if matches.get_flag(OPT_T) {
+                        // mktemp -t foo.xxx should export in TMPDIR
+                        Some(env::temp_dir().display().to_string())
+                    } else {
+                        matches.get_one::<String>(OPT_TMPDIR).map(String::from)
+                    };
                     (tmpdir, template.to_string())
                 }
             }
diff --git a/dev/src/uu_more/more.rs.html b/dev/src/uu_more/more.rs.html
index e4d7f1b64..14dc2ca61 100644
--- a/dev/src/uu_more/more.rs.html
+++ b/dev/src/uu_more/more.rs.html
@@ -513,6 +513,16 @@
 513
 514
 515
+516
+517
+518
+519
+520
+521
+522
+523
+524
+525
 
//  * This file is part of the uutils coreutils package.
 //  *
 //  * (c) Martin Kysel <code@martinkysel.com>
@@ -772,6 +782,11 @@
                     modifiers: KeyModifiers::NONE,
                     ..
                 })
+                | Event::Key(KeyEvent {
+                    code: KeyCode::PageDown,
+                    modifiers: KeyModifiers::NONE,
+                    ..
+                })
                 | Event::Key(KeyEvent {
                     code: KeyCode::Char(' '),
                     modifiers: KeyModifiers::NONE,
@@ -787,6 +802,11 @@
                     code: KeyCode::Up,
                     modifiers: KeyModifiers::NONE,
                     ..
+                })
+                | Event::Key(KeyEvent {
+                    code: KeyCode::PageUp,
+                    modifiers: KeyModifiers::NONE,
+                    ..
                 }) => {
                     pager.page_up();
                 }
diff --git a/dev/src/uu_rm/rm.rs.html b/dev/src/uu_rm/rm.rs.html
index 85f8a2ee7..60938a3e8 100644
--- a/dev/src/uu_rm/rm.rs.html
+++ b/dev/src/uu_rm/rm.rs.html
@@ -564,6 +564,8 @@
 564
 565
 566
+567
+568
 
//  * This file is part of the uutils coreutils package.
 //  *
 //  * (c) Alex Lyon <arcterus@mail.com>
@@ -573,8 +575,9 @@
 
 // spell-checker:ignore (path) eacces
 
-use clap::{crate_version, parser::ValueSource, Arg, ArgAction, Command};
+use clap::{builder::ValueParser, crate_version, parser::ValueSource, Arg, ArgAction, Command};
 use std::collections::VecDeque;
+use std::ffi::{OsStr, OsString};
 use std::fs::{self, File, Metadata};
 use std::io::ErrorKind;
 use std::ops::BitOr;
@@ -625,9 +628,9 @@
 pub fn uumain(args: impl uucore::Args) -> UResult<()> {
     let matches = uu_app().after_help(AFTER_HELP).try_get_matches_from(args)?;
 
-    let files: Vec<String> = matches
-        .get_many::<String>(ARG_FILES)
-        .map(|v| v.map(ToString::to_string).collect())
+    let files: Vec<&OsStr> = matches
+        .get_many::<OsString>(ARG_FILES)
+        .map(|v| v.map(OsString::as_os_str).collect())
         .unwrap_or_default();
 
     let force_flag = matches.get_flag(OPT_FORCE);
@@ -797,13 +800,14 @@
         .arg(
             Arg::new(ARG_FILES)
                 .action(ArgAction::Append)
+                .value_parser(ValueParser::os_string())
                 .num_args(1..)
                 .value_hint(clap::ValueHint::AnyPath),
         )
 }
 
 // TODO: implement one-file-system (this may get partially implemented in walkdir)
-fn remove(files: &[String], options: &Options) -> bool {
+fn remove(files: &[&OsStr], options: &Options) -> bool {
     let mut had_err = false;
 
     for filename in files {
diff --git a/dev/uu_mktemp/fn.dry_exec.html b/dev/uu_mktemp/fn.dry_exec.html
index 647bd62a5..966e70f10 100644
--- a/dev/uu_mktemp/fn.dry_exec.html
+++ b/dev/uu_mktemp/fn.dry_exec.html
@@ -1,4 +1,4 @@
-dry_exec in uu_mktemp - Rust

Function uu_mktemp::dry_exec

source ·
pub fn dry_exec(
+dry_exec in uu_mktemp - Rust

Function uu_mktemp::dry_exec

source ·
pub fn dry_exec(
     tmpdir: &str,
     prefix: &str,
     rand: usize,
diff --git a/dev/uu_mktemp/fn.uu_app.html b/dev/uu_mktemp/fn.uu_app.html
index 1df74221a..6a4950cb0 100644
--- a/dev/uu_mktemp/fn.uu_app.html
+++ b/dev/uu_mktemp/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_mktemp - Rust

Function uu_mktemp::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file +uu_app in uu_mktemp - Rust

Function uu_mktemp::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file diff --git a/dev/uu_mktemp/fn.uumain.html b/dev/uu_mktemp/fn.uumain.html index 16f6d44ca..757537a50 100644 --- a/dev/uu_mktemp/fn.uumain.html +++ b/dev/uu_mktemp/fn.uumain.html @@ -1 +1 @@ -uumain in uu_mktemp - Rust

Function uu_mktemp::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file +uumain in uu_mktemp - Rust

Function uu_mktemp::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file diff --git a/dev/uu_mktemp/index.html b/dev/uu_mktemp/index.html index efa3cfcfa..775113179 100644 --- a/dev/uu_mktemp/index.html +++ b/dev/uu_mktemp/index.html @@ -1 +1 @@ -uu_mktemp - Rust
\ No newline at end of file +uu_mktemp - Rust
\ No newline at end of file diff --git a/dev/uu_more/index.html b/dev/uu_more/index.html index 855b21799..0ba9b6216 100644 --- a/dev/uu_more/index.html +++ b/dev/uu_more/index.html @@ -1 +1 @@ -uu_more - Rust
\ No newline at end of file +uu_more - Rust
\ No newline at end of file diff --git a/dev/uu_rm/fn.uu_app.html b/dev/uu_rm/fn.uu_app.html index 94e0062e3..c497b7703 100644 --- a/dev/uu_rm/fn.uu_app.html +++ b/dev/uu_rm/fn.uu_app.html @@ -1 +1 @@ -uu_app in uu_rm - Rust

Function uu_rm::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file +uu_app in uu_rm - Rust

Function uu_rm::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file diff --git a/dev/uu_rm/fn.uumain.html b/dev/uu_rm/fn.uumain.html index 361ed765a..01e6981a1 100644 --- a/dev/uu_rm/fn.uumain.html +++ b/dev/uu_rm/fn.uumain.html @@ -1 +1 @@ -uumain in uu_rm - Rust

Function uu_rm::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file +uumain in uu_rm - Rust

Function uu_rm::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file diff --git a/dev/uu_rm/index.html b/dev/uu_rm/index.html index 97069aaf1..735b2adb4 100644 --- a/dev/uu_rm/index.html +++ b/dev/uu_rm/index.html @@ -1 +1 @@ -uu_rm - Rust
\ No newline at end of file +uu_rm - Rust
\ No newline at end of file