Re: here documents with mksh on Android (was Re: [Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen)
enh dixit: >probably related to >https://code.google.com/p/android/issues/detail?id=66815. i think the Right, similar issue. >hard part is what to set $TMPDIR to. Agreed. If I get a C API I can just call, I would put it into main.c in mksh (set TMPDIR to that value, unless we import it from the environment already). Otherwise, something should ensure that $TMPDIR is set whenever mksh is called. Since the shell can be called various ways (during boot, adb, from a local application), this is pretty complicated; I’d suggest adding code to bionic which I can call might be easier. >the AOSP x86 emulator is pretty fast, as long as you have hardware >that lets you use kvm. just don't forget to supply the flag so the >emulator takes advantage of it! Hrm. I’ll have to see if linux-kvm works inside a linux-kvm VM. IIRC, this works with AMD CPUs. What is the “magic invocation” to build for that, instead of for emulator (which I used to be as close to upstream as possible)? bye, //mirabilos -- Yes, I hate users and I want them to suffer. -- Marco d'Itri on gmane.linux.debian.devel.general -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1366451 Title: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen To manage notifications about this bug go to: https://bugs.launchpad.net/mksh/+bug/1366451/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
here documents with mksh on Android (was Re: [Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen)
Jason Spiro dixit: >By the way, do here-documents work okay on modern versions of Android? >Or is there no place for mksh to write the required temporary files to >make them work? There is still no place. If you set (not even needed to export, but exporting is better so subshells inherit it) $TMPDIR, it works. If you are root, it works (I think). The AOSP people sorta-promised me either to set $TMPDIR in the launcher, or to give me an API I can use to query a directory which is writable for the current user (home directory, most likely). I have not received either, yet. You may want to prod them. As I do not use an Android device myself, things are slow from my side. bye, //mirabilos -- >> Why don't you use JavaScript? I also don't like enabling JavaScript in > Because I use lynx as browser. +1 -- Octavio Alvarez, me and ⡍⠁⠗⠊⠕ (Mario Lang) on debian-devel -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1366451 Title: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen To manage notifications about this bug go to: https://bugs.launchpad.net/mksh/+bug/1366451/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs