-
Notifications
You must be signed in to change notification settings - Fork 90
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
[BUG] /usr/bin/echo eats "-E", but amber does not handle the case #619
Labels
bug
Something isn't working
Comments
This comment was marked as outdated.
This comment was marked as outdated.
What is the bash generated? |
amber (Edited: |
amber One solution I can think is replacing |
lens0021
changed the title
[BUG] Cannot set a variable as
[BUG] Cannot print solely "-E" or set a variable as Nov 25, 2024
"-E"
"-E"
lens0021
changed the title
[BUG] Cannot print solely "-E" or set a variable as
[BUG] /usr/bin/echo eats "-E", but amber does not handle the case
Nov 25, 2024
"-E"
@hdwalters what do you think? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
/usr/bin/echo eats the token
"-E"
because it seems to be [SHORT-OPTION] of echo. So the next things happen:echo "-E"
prints nothing.let flag = "-E"
setsflag
as""
To Reproduce
The both commands print nothing.
Expected behavior
-E
should be printed.Additional context
Because of this, the next
flag
is set as"-r"
or""
, so that thereplace_regex
does not work as expected.amber/src/std/text.ab
Line 23 in cba1671
The text was updated successfully, but these errors were encountered: