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

Expand $LINENO to a correct value in the prompt string #382

Open
Tracked by #372
magicant opened this issue Jul 7, 2024 · 1 comment
Open
Tracked by #372

Expand $LINENO to a correct value in the prompt string #382

magicant opened this issue Jul 7, 2024 · 1 comment

Comments

@magicant
Copy link
Owner

magicant commented Jul 7, 2024

In the current implementation, the $LINENO variable contained in the prompt string ($PS1 and $PS2) always expands to 1. This is because the expansion of the $LINENO parameter occurs in the first line of the prompt string variable value, which is parsed as text.

A more intuitive behavior would be to expand $LINENO to the line number in the current lexer context, but the current architecture does not allow this because we now create a separate lexer to parse the text.

@magicant magicant mentioned this issue Jul 7, 2024
10 tasks
@magicant
Copy link
Owner Author

magicant commented Jul 7, 2024

I won't be addressing this issue anytime soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant