yash-rs icon indicating copy to clipboard operation
yash-rs copied to clipboard

Value of `$LINENO` within command substitution

Open magicant opened this issue 1 year ago • 0 comments
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?

magicant avatar Aug 20 '24 16:08 magicant