https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264656
Bug ID: 264656
Summary: sh(1): should disregard trailing blanks in variables
in arithmetic expressions.
Product: Base System
Version: 13.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Created attachment 234661
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234661&action=edit
Disregard trailing blanks in variables inside arithmetic expressions
sh(1) should disregard any trailing blank chars. in variables inside
arithmetic expressions:
$ x='10 '
$ echo $((x + 1))
sh: arithmetic expression: variable conversion error: "x + 1"
$
Patch attached.
--
You are receiving this mail because:
You are the assignee for the bug.