mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
Add unary not (#5111)
This commit is contained in:
@ -111,6 +111,7 @@ impl Command for Glob {
|
||||
}
|
||||
};
|
||||
|
||||
#[allow(clippy::needless_collect)]
|
||||
let glob_results: Vec<Value> = glob
|
||||
.walk(path, folder_depth)
|
||||
.flatten()
|
||||
|
@ -195,6 +195,12 @@ fn convert_to_value(
|
||||
"binary operators not supported in nuon".into(),
|
||||
expr.span,
|
||||
)),
|
||||
Expr::UnaryNot(..) => Err(ShellError::OutsideSpannedLabeledError(
|
||||
original_text.to_string(),
|
||||
"Error when loading".into(),
|
||||
"unary operators not supported in nuon".into(),
|
||||
expr.span,
|
||||
)),
|
||||
Expr::Block(..) => Err(ShellError::OutsideSpannedLabeledError(
|
||||
original_text.to_string(),
|
||||
"Error when loading".into(),
|
||||
|
Reference in New Issue
Block a user