mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #2957 from jfinkels/head-preserve-no-final-newline
head: don't add trailing newline to end of file that didn't originally have one
This commit is contained in:
commit
0ed5e2c884
10 changed files with 29 additions and 91 deletions
|
@ -157,11 +157,17 @@ fn test_negative_byte_syntax() {
|
|||
#[test]
|
||||
fn test_negative_zero_lines() {
|
||||
new_ucmd!()
|
||||
.args(&["--lines=-0"])
|
||||
.arg("--lines=-0")
|
||||
.pipe_in("a\nb\n")
|
||||
.succeeds()
|
||||
.stdout_is("a\nb\n");
|
||||
new_ucmd!()
|
||||
.arg("--lines=-0")
|
||||
.pipe_in("a\nb")
|
||||
.succeeds()
|
||||
.stdout_is("a\nb");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_negative_zero_bytes() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue