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)
Thorsten Glaser
1366451 at bugs.launchpad.net
Wed Sep 17 10:07:24 UTC 2014
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
Foundations Bugs, which is subscribed to mksh in Ubuntu.
https://bugs.launchpad.net/bugs/1366451
Title:
"mksh -v" should display mksh's version number, plus the attached
chunk of text, onscreen
Status in The MirBSD Korn Shell:
Opinion
Status in “mksh” package in Ubuntu:
Opinion
Status in “mksh” package in Debian:
Opinion
Bug description:
It's customary in the Unix world that "-v" or "--version" displays a
program's version. If someone is logged into an Android device, you
want to make it easy for them to find out which shell is installed.
How can you do this? One way is to offer a "-v" option which will tell
them the answer (and will also tell them mksh's version number).
May I suggest that, if the user runs "mksh -v", then mksh should echo
the following to stdout, after which it should immediately exit.
--- cut here ---
mksh R50b+cvs
This is mksh, the MirBSD Korn Shell.
Homepage: <http://mirbsd.de/mksh>.
Copyright (C) 2002-2014 Thorsten Glaser.
This is open-source software; see <https://www.mirbsd.org/TaC-mksh.txt> for copying conditions.
This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
the utmost extent permitted by applicable law, neither express nor
implied; without malicious intent or gross negligence.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mksh/+bug/1366451/+subscriptions
More information about the foundations-bugs
mailing list