yash-rs
yash-rs copied to clipboard
Value of `$LINENO` within command substitution
trafficstars
Currently, the $LINENO that appears inside a command substitution expands to the line number in terms of the local script rather than the file containing the command substitution. Is this the expected behavior?
echo $LINENO # 1
echo $(echo $LINENO) # should be 1 or 2?