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

$: Add rzshell façade #4314

Merged
merged 4 commits into from
Mar 2, 2024
Merged

$: Add rzshell façade #4314

merged 4 commits into from
Mar 2, 2024

Conversation

kazarmy
Copy link
Member

@kazarmy kazarmy commented Mar 2, 2024

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the rizin book with the relevant information (if needed)

Detailed description

This pr is an initial conversion of $ to rzshell. Internally, it's still OLDINPUT code. Note that quoting rules have changed, I think for the better.

Test plan

All builds are green.

Closing issues

Tracking issues: #1583, #1342

@XVilka XVilka added this to the 0.8.0 milestone Mar 2, 2024
librz/core/cmd/cmd_alias.c Outdated Show resolved Hide resolved
@wargio
Copy link
Member

wargio commented Mar 2, 2024

I love how github is scared by UTF-8. The head ref may contain hidden characters: "$-add-rzshell-fa\u00E7ade"

#include "rz_cmd.h"
#include "rz_core.h"

static int rz_cmd_alias(void *data, const char *input) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment here as TODO where you explain that this needs to be refactored.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok 707f346

@wargio wargio merged commit 2994541 into rizinorg:dev Mar 2, 2024
45 checks passed
@kazarmy
Copy link
Member Author

kazarmy commented Mar 2, 2024

I love how github is scared by UTF-8. ...

ASCII as the lowest common denominator

@kazarmy kazarmy mentioned this pull request Mar 3, 2024
5 tasks
@arrowd
Copy link
Contributor

arrowd commented Mar 5, 2024

This change regenerated subprojects/rizin-shell-parser/src/parser.c effectively reverting #4165
The new release fails to build for me :<

@kazarmy
Copy link
Member Author

kazarmy commented Mar 5, 2024

I think there needs to be a way to ensure that there is no repeat of #4325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants