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

Redo $() parsing to not show transformation to user #19

Open
czipperz opened this issue Nov 23, 2022 · 4 comments
Open

Redo $() parsing to not show transformation to user #19

czipperz opened this issue Nov 23, 2022 · 4 comments

Comments

@czipperz
Copy link
Owner

No description provided.

@blazingkin
Copy link
Collaborator

I'm not sure where the transformation is visible to the user - It shows the command unmodified when I run for example echo $(echo foo)

@blazingkin
Copy link
Collaborator

Also happy holidays

@czipperz
Copy link
Owner Author

@blazingkin
Try defining a function then using function keyword to dump body. Or creating a macro function like __tesh_F4

@czipperz
Copy link
Owner Author

Basically I didn't wanna redo the tree descent algo in the shell that's used to find the next command to run. So instead I made echo $(cmd) parse into (cmd) | __tesh_set_var temp; echo $temp

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

No branches or pull requests

2 participants