Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value of $LINENO within command substitution #404

Open
magicant opened this issue Aug 20, 2024 · 0 comments
Open

Value of $LINENO within command substitution #404

magicant opened this issue Aug 20, 2024 · 0 comments

Comments

@magicant
Copy link
Owner

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

No branches or pull requests

1 participant