mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 08:49:33 +02:00
Improve external quoting logic (#3579)
* Add tests and improve quoting logic * fmt * Fix clippy ling * Fix clippy ling
This commit is contained in:
@ -25,6 +25,15 @@ pub fn cococo() {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn meow() {
|
||||
let args: Vec<String> = args();
|
||||
|
||||
for arg in args.iter().skip(1) {
|
||||
let contents = std::fs::read_to_string(arg).expect("Expected a filepath");
|
||||
println!("{}", contents);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn nonu() {
|
||||
args().iter().skip(1).for_each(|arg| print!("{}", arg));
|
||||
}
|
||||
|
Reference in New Issue
Block a user