mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 13:07:46 +00:00
Merge pull request #408 from nodakai/cat-range-three-dots
cat: range pattern now should use three dots.
This commit is contained in:
commit
24d2730208
1 changed files with 4 additions and 4 deletions
|
@ -221,16 +221,16 @@ fn write_bytes(files: Vec<String>, number: NumberingMode, squeeze_blank: bool,
|
||||||
}
|
}
|
||||||
} else if show_nonprint {
|
} else if show_nonprint {
|
||||||
let byte = match byte {
|
let byte = match byte {
|
||||||
128 .. 255 => {
|
128 ... 255 => {
|
||||||
writer.write_str("M-").unwrap();
|
writer.write_str("M-").unwrap();
|
||||||
byte - 128
|
byte - 128
|
||||||
},
|
},
|
||||||
_ => byte,
|
_ => byte,
|
||||||
};
|
};
|
||||||
match byte {
|
match byte {
|
||||||
0 .. 31 => writer.write(['^' as u8, byte + 64]),
|
0 ... 31 => writer.write(['^' as u8, byte + 64]),
|
||||||
127 => writer.write(['^' as u8, byte - 64]),
|
127 => writer.write(['^' as u8, byte - 64]),
|
||||||
_ => writer.write_u8(byte),
|
_ => writer.write_u8(byte),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
writer.write_u8(byte)
|
writer.write_u8(byte)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue