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

Incompatibility: Implicit concatenation of `{cmd}x sequences #592

Open
euclaise opened this issue Dec 9, 2022 · 2 comments
Open

Incompatibility: Implicit concatenation of `{cmd}x sequences #592

euclaise opened this issue Dec 9, 2022 · 2 comments

Comments

@euclaise
Copy link

euclaise commented Dec 9, 2022

This one caused an accidental rm -rf /*...

Behavior on 9front and in https://github.com/rakitzis/rc:

image

euclaise@thinkpad fort $ rc                                                                                                                                                              git
; root=`{pwd}/root
rc: /root: Permission denied

Behavior of plan9port rc:

euclaise@thinkpad fort 1 $ 9 rc                                                                                                                                                          git
% root=`{pwd}/root
% echo $root
/home/euclaise/Projects/fort/root
%

It seems plan9port's rc is implicitly concatenating here, but the others aren't.

I'm on Arch Linux using the plan9port package, version 20220818-1.

@wgrr
Copy link

wgrr commented Jan 8, 2023

I think this is one of the intentional divergences from plan9 rc introduced by p9p's rc parser. There's an -Y flag which makes rc use the old yacc-based parser, does that gives you the desired behavior?

@euclaise
Copy link
Author

euclaise commented Jan 9, 2023

Oh, indeed it does

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