We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6349206 commit d0999e7Copy full SHA for d0999e7
src/elements/expr/arithmetic/word.rs
@@ -70,7 +70,7 @@ pub fn str_to_num(name: &str, core: &mut ShellCore) -> Result<ArithElem, String>
70
/* resolve the case where the name is an arithmetic operation */
71
let mut f = Feeder::new(&name);
72
if let Some(mut a) = ArithmeticExpr::parse(&mut f, core, false) {
73
- if a.elements.len() == 1 {
+ if a.elements.len() == 1 { // In this case, the element is not changed by the evaluation.
74
return Err(error::syntax(&name));
75
}
76
0 commit comments