Skip to content

Commit 41ffa5d

Browse files
authored
Merge pull request #159 from rustcoreutils/hacking
Version 0.1.12
2 parents 6cb4595 + 0de93d5 commit 41ffa5d

File tree

18 files changed

+96
-96
lines changed

18 files changed

+96
-96
lines changed

Cargo.lock

+76-76
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

calc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-calc"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55

66
[dependencies]

datetime/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-datetime"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

dev/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-dev"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

display/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-display"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

file/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-file"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

file/src/dd.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ struct Config {
109109
impl Config {
110110
fn new() -> Config {
111111
Config {
112-
ifile: String::from("-"),
113-
ofile: String::from("-"),
112+
ifile: String::new(),
113+
ofile: String::new(),
114114
ibs: DEF_BLOCK_SIZE,
115115
obs: DEF_BLOCK_SIZE,
116116
cbs: 0,
@@ -228,13 +228,13 @@ fn apply_conversions(data: &mut Vec<u8>, config: &Config) {
228228

229229
fn copy_convert_file(config: &Config) -> Result<(), Box<dyn std::error::Error>> {
230230
let mut ifile: Box<dyn Read>;
231-
if config.ifile == "-" {
231+
if config.ifile == "" {
232232
ifile = Box::new(io::stdin().lock());
233233
} else {
234234
ifile = Box::new(fs::File::open(&config.ifile)?);
235235
}
236236
let mut ofile: Box<dyn Write>;
237-
if config.ofile == "-" {
237+
if config.ofile == "" {
238238
ofile = Box::new(io::stdout().lock())
239239
} else {
240240
ofile = Box::new(fs::File::create(&config.ofile)?)

fs/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-fs"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

misc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-misc"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

pathnames/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-pathnames"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

plib/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "plib"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

process/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-process"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

screen/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-screen"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-sys"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

text/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-text"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

tree/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-tree"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

users/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-users"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

xform/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "posixutils-xform"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2021"
55
authors = ["Jeff Garzik"]
66
license = "MIT"

0 commit comments

Comments
 (0)