mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 21:17:46 +00:00
head, tail, uutils: fix build
This commit is contained in:
parent
4f311e3c60
commit
476bdcd9d2
3 changed files with 5 additions and 6 deletions
|
@ -16,7 +16,7 @@ extern crate getopts;
|
|||
|
||||
use std::char;
|
||||
use std::io::{stdin};
|
||||
use std::io::BufferedReader;
|
||||
use std::io::{BufferedReader, BytesReader};
|
||||
use std::io::fs::File;
|
||||
use std::path::Path;
|
||||
use std::str::from_utf8;
|
||||
|
|
|
@ -15,12 +15,11 @@ extern crate getopts;
|
|||
|
||||
use std::char;
|
||||
use std::io::{stdin};
|
||||
use std::io::BufferedReader;
|
||||
use std::io::{BufferedReader, BytesReader};
|
||||
use std::io::fs::File;
|
||||
use std::path::Path;
|
||||
use std::str::from_utf8;
|
||||
use getopts::{optopt, optflag, getopts, usage};
|
||||
use std::collections::Deque;
|
||||
use std::collections::ringbuf::RingBuf;
|
||||
use std::io::timer::sleep;
|
||||
use std::time::duration::Duration;
|
||||
|
|
|
@ -46,7 +46,7 @@ fn main() {
|
|||
let binary = Path::new(args[0].as_slice());
|
||||
let binary_as_util = binary.filename_str().unwrap();
|
||||
|
||||
match umap.find_equiv(&binary_as_util) {
|
||||
match umap.find_equiv(binary_as_util) {
|
||||
Some(&uumain) => {
|
||||
os::set_exit_status(uumain(args));
|
||||
return
|
||||
|
@ -70,7 +70,7 @@ fn main() {
|
|||
args.remove(0);
|
||||
let util = args[0].as_slice();
|
||||
|
||||
match umap.find_equiv(&util) {
|
||||
match umap.find_equiv(util) {
|
||||
Some(&uumain) => {
|
||||
os::set_exit_status(uumain(args.clone()));
|
||||
return
|
||||
|
@ -80,7 +80,7 @@ fn main() {
|
|||
// see if they want help on a specific util
|
||||
if args.len() >= 2 {
|
||||
let util = args[1].as_slice();
|
||||
match umap.find_equiv(&util) {
|
||||
match umap.find_equiv(util) {
|
||||
Some(&uumain) => {
|
||||
os::set_exit_status(uumain(vec![util.to_string(), "--help".to_string()]));
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue