-
Notifications
You must be signed in to change notification settings - Fork 201
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
"file" command in afc shell appears to run on host instead of inside device #1196
Comments
Yeah that's because the provided shell isn't a real shell but a mock instead. pmd defines aliases to make it work with connected device, but when u run any other command that isn't mapped as an alias, it runs on your local machine instead. If you want, you can add an implementaion for |
Ah, I figured that's what happens, but I noticed that |
Found the relevant code, seems like this is there for a reason: pymobiledevice3/pymobiledevice3/services/afc.py Lines 778 to 785 in dae7c72
|
Created this on xonsh repo: If this issue is resolved, I can remove the |
Test environment
Describe the bug
I'm trying to run the
file
command to see information about a file on my device. However, I always get an error that the file does not exist. If I use tab auto-complete, I get suggestions for files in the current working directory of my host, not my iDevice. Surely enough, it also executes file if I specify a file on my host.To Reproduce
Expected behavior
Result from device is returned
Logs
Result from host is returned instead
Additional context
N/A
For community
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 commentThe text was updated successfully, but these errors were encountered: