horeah / PyCmd

Improved interactive experience for Windows' cmd.exe
GNU Lesser General Public License v3.0
18 stars 4 forks source link

adb shell "getprop|grep -iE 'build.type|root.support'" leads to: the system cannot find the path specified #14

Open zhangxaochen opened 8 months ago

zhangxaochen commented 8 months ago

Dear sir, When I try "PyCmd 20230424-x64", running adb shell "getprop|grep -iE 'build.type|root.support'" leads to the system cannot find the path specified, is it a bug? "PyCmd 20210310-x64" handle this cmd correctly

horeah commented 8 months ago

This problem has been introduced when PyCmd switched to using delayed expansion (/V:ON) by default. Running PyCmd.exe /V:OFF makes it work, but of course disables some valuable functionality such as showing the ERRORLEVEL in the prompt.

I will look into this -- thanks for reporting!

horeah commented 8 months ago

@zhangxaochen Does escaping the second | via caret (^) make it work? I.e.

adb shell "getprop|grep -iE 'build.type^|root.support'"