PyCmd icon indicating copy to clipboard operation
PyCmd copied to clipboard

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

Open zhangxaochen opened this issue 1 year ago • 2 comments

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

zhangxaochen avatar Oct 20 '23 03:10 zhangxaochen

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 avatar Oct 21 '23 11:10 horeah

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

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

horeah avatar Oct 21 '23 11:10 horeah

This has been fixed in release 20240904. Thanks @zhangxaochen for reporting!

horeah avatar Sep 10 '24 20:09 horeah