pub fn exec(bytes: &[u8]) -> Result<()>diff --git a/dev/src/uu_od/parse_nrofbytes.rs.html b/dev/src/uu_od/parse_nrofbytes.rs.html index b5f6b4b1b..6a39d8e69 100644 --- a/dev/src/uu_od/parse_nrofbytes.rs.html +++ b/dev/src/uu_od/parse_nrofbytes.rs.html @@ -89,6 +89,7 @@ 89 90 91 +92
use uucore::parse_size::{parse_size, ParseSizeError};
pub fn parse_number_of_bytes(s: &str) -> Result<u64, ParseSizeError> {
@@ -134,7 +135,7 @@
len -= 1;
}
#[cfg(target_pointer_width = "64")]
- Some('E') => {
+ Some('E') if radix != 16 => {
multiply = 1024 * 1024 * 1024 * 1024 * 1024 * 1024;
len -= 1;
}
@@ -175,6 +176,7 @@
// hex input
assert_eq!(15, parse_number_of_bytes("0xf").unwrap());
+ assert_eq!(14, parse_number_of_bytes("0XE").unwrap());
assert_eq!(15, parse_number_of_bytes("0XF").unwrap());
assert_eq!(27, parse_number_of_bytes("0x1b").unwrap());
assert_eq!(16 * 1024, parse_number_of_bytes("0x10k").unwrap());
diff --git a/dev/src/uu_yes/yes.rs.html b/dev/src/uu_yes/yes.rs.html
index 69ab94435..e6e587205 100644
--- a/dev/src/uu_yes/yes.rs.html
+++ b/dev/src/uu_yes/yes.rs.html
@@ -199,6 +199,7 @@
199
200
201
+202
// * This file is part of the uutils coreutils package.
// *
// * (c) Jordi Boggiano <j.boggiano@seld.be>
@@ -210,7 +211,7 @@
// cSpell:ignore strs
-use clap::{builder::ValueParser, Arg, ArgAction, Command};
+use clap::{builder::ValueParser, crate_version, Arg, ArgAction, Command};
use std::error::Error;
use std::ffi::OsString;
use std::io::{self, Write};
@@ -245,6 +246,7 @@
pub fn uu_app() -> Command {
Command::new(uucore::util_name())
+ .version(crate_version!())
.about(ABOUT)
.override_usage(format_usage(USAGE))
.arg(
diff --git a/dev/uu_yes/fn.exec.html b/dev/uu_yes/fn.exec.html
index 4a117ce4f..34a74f172 100644
--- a/dev/uu_yes/fn.exec.html
+++ b/dev/uu_yes/fn.exec.html
@@ -1 +1 @@
-exec in uu_yes - Rust
\ No newline at end of file
+exec in uu_yes - Rust
\ No newline at end of file
diff --git a/dev/uu_yes/fn.uu_app.html b/dev/uu_yes/fn.uu_app.html
index 649355705..7134b3bad 100644
--- a/dev/uu_yes/fn.uu_app.html
+++ b/dev/uu_yes/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_yes - Rust
\ No newline at end of file
+uu_app in uu_yes - Rust
\ No newline at end of file
diff --git a/dev/uu_yes/index.html b/dev/uu_yes/index.html
index 964d7cf02..2d90c2db2 100644
--- a/dev/uu_yes/index.html
+++ b/dev/uu_yes/index.html
@@ -1 +1 @@
-uu_yes - Rust
\ No newline at end of file
+uu_yes - Rust
\ No newline at end of file