mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 19:28:50 +02:00
A random set of fixes (#1600)
This commit is contained in:
@@ -444,6 +444,8 @@ fn spawn(
|
||||
process.arg("/c");
|
||||
process.arg(&command.name);
|
||||
for arg in args {
|
||||
// Clean the args before we use them:
|
||||
let arg = arg.replace("|", "\\|");
|
||||
process.arg(&arg);
|
||||
}
|
||||
process
|
||||
|
@@ -76,6 +76,12 @@ impl PerItemCommand for Help {
|
||||
return Ok(
|
||||
get_help(&command.name(), &command.usage(), command.signature()).into(),
|
||||
);
|
||||
} else {
|
||||
return Err(ShellError::labeled_error(
|
||||
"Can't find command (use 'help commands' for full list)",
|
||||
"can't find command",
|
||||
tag,
|
||||
));
|
||||
}
|
||||
let help = futures::stream::iter(help);
|
||||
Ok(help.to_output_stream())
|
||||
|
Reference in New Issue
Block a user