-
Notifications
You must be signed in to change notification settings - Fork 304
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
Permanent error on a weird environment #4378
Comments
There is nothing we can do for unsupported terminals. As for the history file issue shown in the exception message, it could be caused by:
|
|
Unfortunately, PSReadLine always try creating a mutex for history file on startup and thus doesn't work on a read-only filesystem. |
Android is very restrictive, it would work if it tried to write the history somewhere in $PREFIX ( |
IIRC, PowerShell itself will create some caching files when starting up or when doing some common operation (like module analysis will be triggered by a command discovery and tries to write to a cache file), how did you work around all that? |
I don't know. It's just a supposition. |
Prerequisites
Exception report
Screenshot
N/A
Environment data
Steps to reproduce
I'm trying to build PowerShell on an unsupported environment so first I tried to patch the current version of PowerShell to "work". I'm using Termux (an Android terminal emulator) with GlibC shell (glibc-runner, an implementation of GLIBC in Termux) and patched ELF files with patchelf. glibc libs path:
/data/data/com.termux/files/usr/glibc/lib/
; native (Android Bionic libc) libs path :/data/data/com.termux/files/usr/lib/
Expected behavior
Just a "working" shell.
Actual behavior
Each character input makes all the command appended to the end like for
Write-Host "Test"
:WWrWriWritWriteWrite-Write-H...
.Impossible to leave the shell using
^D
or^C
.I get the error at each line input (pressing the Return key)
The text was updated successfully, but these errors were encountered: