Add support for hex literals in arithmetic expressions#179
Add support for hex literals in arithmetic expressions#179alexdowad wants to merge 1 commit intoemersion:masterfrom
Conversation
37d3b19 to
468bf37
Compare
|
Hmm. Test failure on Arch Linux only, on a test script which doesn't appear related to this change... the build log output also doesn't seem to show what is wrong about the output... |
d86e814 to
468bf37
Compare
|
OK, well, I see what is causing the failure now. The reference shell on Arch Linux is doing tilde expansion different from the reference shells on other platforms. It's from this part of On the other platforms, the reference shells expand that to |
39bc8ff to
468bf37
Compare
|
@YerinAlexey Thanks for the review. By the way, when I started modifying this code, I found a comment saying that Maybe that comment should just be deleted? Or is |
No, I don't think so. Spec doesn't mention binary constants (that's where
Ref: https://pubs.opengroup.org/onlinepubs/009604499/utilities/xcu_chap02.html#tag_02_06_04 |
Dear mrsh people,
Love your code! 😍💻 I'm a person who needs to learn shell scripting for work. Tried reading the POSIX spec, found some parts difficult to understand, decided to look at an implementation for more clarity, read some of BusyBox ash, later found mrsh and am having a much better time with it.
Here's a small contribution back. Tried to follow your coding style; please let me know if I missed anything.