-
Notifications
You must be signed in to change notification settings - Fork 607
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] line's info field cannot start with number #1201
Comments
This works fine for me, with the right escape sequence.
gives the right byte.
gives me
is correct, but
not, as it parses |
Sorry, you are right, indeed the error is on my side. I should have elaborated a bit more. Due to various reasons I am using Thank you for taking time testing this in bash! I now see where the error lies: in I thought octal sequences are parsed and expanded first, and only then variables are expanded in the One way to "break" dash from octal parsing mode is to insert non numeric character before WID expansion, and then strip it from ROFI_INFO later (that's why the XXX version "works"). Would you be so kind and record this gotcha for posterity please? For example in manual under "other shells caveats" section (or something like that)? |
FTR, you can use |
Okay I tried you aporoach @sardemff7, and it works fine as well, so thank you for that! Dash man page addition should certainly be made, but wouldn't it be also wise to have at least warning in rofi docs - or is rofi policy "other shells than bash are unsupported, eg. you problem" ? |
Thank you very much @DaveDavenport ! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
Version: 1.6.0
Configuration
Not needed
Launch Command
rofi -show frame-pick -modi "frame-pick:./frame-picker"
Steps to reproduce
info
set to values that begin with number eg '0x1234', '1234', '3456' or '0123', etc.ROFI_INFO
env variable passed to a scriptWhat behaviour you see
ROFI_INFO
env variable is empty, eg zeroWhat behaviour you expect to see
ROFI_INFO
env variable should be set to numeric value encoded ininfo
field of the row selectedThe text was updated successfully, but these errors were encountered: