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

foo$"bar" is a translated_string not a bare $ followed by string #258

Open
verhovsky opened this issue Mar 14, 2024 · 0 comments
Open

foo$"bar" is a translated_string not a bare $ followed by string #258

verhovsky opened this issue Mar 14, 2024 · 0 comments

Comments

@verhovsky
Copy link
Collaborator

verhovsky commented Mar 14, 2024

foo$"bar"

Expected:

program [0, 3] - [1, 0]
  command [0, 3] - [0, 9]
    name: command_name [0, 3] - [0, 9]
      concatenation [0, 0] - [0, 9]
        word [0, 0] - [0, 3]
        translated_string [0, 3] - [0, 9]
          string [0, 4] - [0, 9]
            string_content [0, 5] - [0, 8]

Actual:

program [0, 0] - [1, 0]
  command [0, 0] - [0, 9]
    name: command_name [0, 0] - [0, 9]
      concatenation [0, 0] - [0, 9]
        word [0, 0] - [0, 3]
        string [0, 4] - [0, 9]
          string_content [0, 5] - [0, 8]

as you can see with Bash 5.2.26

$ echo foo$"bar"
foobar
$ echo $"bar"
bar
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