-
Notifications
You must be signed in to change notification settings - Fork 3
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: jstrdecode -Q is not enclosing the output in double quotes #12
Comments
See also GH-issuecomment-2337677465. |
proposed new option for jstrdecodeIn issue #11, we proposed a new We propose a similar thing for The The For example: $ jstrdecode one two three
onetwothree $ jstrdecode -Q one two three
"onetwothree" $ jstrdecode -m one two three
\"one\"\"two\"\"three\" $ jstrdecode -Q -m one two three
"\"one\"\"two\"\"three\"" |
Well the I do want to know something though: these three issues you opened, where do these stand in priority wrt to the IOCCC28 ? |
The initial bug also seems easy to fix. But I have other things to do now unfortunately, so... QUESTION - priority wrt the IOCCCAs I have other things I have to do including over at mkiocccentry but also things unrelated to programming, I just wanted to ask what the priority of this issue is versus the IOCCC. As a programmer, and I'm sure you are very familiar with this, this is an issue that I do not like having, but I also know there is such a thing as prioritising so I am asking this here. I hope to look at the |
I've fixed The other one should be easy to add too. I will see if I can do this quickly and then must do other things. |
How do you propose the test suite check that |
Pretty sure I have both but I changed the option to the more natural |
Actually I thought I had it but there's a problem that has to be worked out with But with the I will have to think about this. I'm afraid I have run out of time. If it was not for this I would be able to commit it now. If you have thoughts on this feel free to add them but I'm sure I can work it out when I have more time. After my zoom call (at the hour, 45 minutes long) I have to do other things. I might have more time later but I'm not sure what I'll get done. I will likely be able to do more later but we'll see. |
I think I have a solution. Stay tuned! (though it might be some time before I do it) |
We have no strong opinion other than the option letter should not conflict with existing options. |
The bug potentially impacts the formation of we pages as we now need to either decode FYI: See GH-issuecomment-2339392055 for a remark on priories. |
A shell script tight just does a few tests such as to test if: jstedecode -Q -n 'l\u00e1maty\u00e1v\u00eb' exists 0, and produces "lámatyávë". A just few simple tests such as that should suffice. |
We believe we have addressed all of the current questions that still need answering at this time. If we've missed something or something else needs to be clarified, please ask again. |
I believe that as of yesterday's commit (also done in mkiocccentry) this issue is fixed except that the Anyway, besides the tests, does this issue seem good? Of course the decoding/encoding issue is another matter entirely but that is in the other issue, right? |
I believe with commit d5eaafa this issue can be marked closed as complete. Is this correct? The The decoding problems can be worked out in their respective issues, I believe? I will try and sync this to mkiocccentry soon but I do really have other things I must get done. UPDATE 0The mkiocccentry repo has had this synced now too. Off to take care of other things. Assuming that this issue can be marked complete I will look at the other ones, hopefully starting tomorrow. |
Thank you and we recommend jparse repo PR 15 as a follow-up. |
You're welcome .. merged that a few minutes ago. |
Is there an existing issue for this?
Describe the bug
missing leading double quote
The output of the
jstrdecode(1)
with-Q
is incorrect:$ jstrdecode -Q hello hello"
The leading double quote is missing.
multiple args missing leading double quote and contains stray double quotes
This is also incorrect:
The leading double quote is missing and the double quotes in the middle are wrong.
What you expect
The result of:
should be enclosed in double quotes:
Moreover:
The result of:
should be enclosed in double quotes without intermediate double quotes:
Environment
bug_report.sh output
n/a
Anything else?
The help message for
jstrdecode -h
is correct:p.s.
We recommend that when
jstrdecode(1)
is fixed in terms of-Q
, the test suite be updated to verify that-Q
processing is correct.The text was updated successfully, but these errors were encountered: