Incompatibility: Implicit concatenation of `{cmd}x sequences
Opened this issue · 2 comments
euclaise commented
This one caused an accidental rm -rf /*
...
Behavior on 9front and in https://github.com/rakitzis/rc:
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 commented
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 commented
Oh, indeed it does