[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-22 Thread Thorsten Glaser
> mirabilos, I wonder if you might be willing to please put some shell function like this into the dot.mkshrc in upstream mksh CVS? I’m not. > It seems to me a fairly uncontroversial change. No. As I said, “help” is very generic, and I know of distros aliasing it to “man” or “man man”. (SuSE 6.

[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-21 Thread Jason Spiro
mirabilos, I wonder if you might be willing to please put some shell function like this into the dot.mkshrc in upstream mksh CVS? It seems to me a fairly uncontroversial change. Then, next time you push the latest mksh version into Android gerrit, perhaps you could include this change as part of

[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-21 Thread Thorsten Glaser
Jason requested an explicit answer to https://bugs.launchpad.net/mksh/+bug/1366451/comments/9 and here it is: The idea is ok, but you’ll have to take this up with the Android developers yourself and submit it to AOSP using their Gerrit instance. That’s all I ever do, too. I could imagine an imple

[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-17 Thread Thorsten Glaser
** Bug watch added: code.google.com/p/android/issues #66815 http://code.google.com/p/android/issues/detail?id=66815 -- 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 d

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)

2014-09-17 Thread Thorsten Glaser
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 th

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)

2014-09-16 Thread Thorsten Glaser
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) $TMP

[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-16 Thread Jason Spiro
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? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bu

[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-16 Thread Jason Spiro
In various comments, Thorsten Glaser wrote: > This is actually a good idea. Thank you :) > Maybe they should tag those questions [mksh] on SE > and I should subscribe that tag there. A lot of the people who type "help" might not actually have questions about mksh: they may instead have questio

Re: [Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-12 Thread Thorsten Glaser
Jason Spiro dixit: >mksh takes up more than 100 KB, and typical new Android phones seem to >include gigabytes of flash memory. I still believe Android could afford >the bytes it would cost to include a "help" function in >/system/bin/mkshrc which would display something like the following. This

[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-12 Thread Jason Spiro
> Nothing against your intent, or beginners, or something, but Android > is really not the OS one should be learning a Unix shell in. You are correct. Still, if someone owns only a Windows box and an Android phone, they might end up starting their learning on Android anyway. > And mksh is first a

Re: [Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-12 Thread Thorsten Glaser
Jason Spiro dixit: >If I sent a patch which would add this functionality, would you consider >accepting it? No. Nothing against your intent, or beginners, or something, but Android is really not the OS one should be learning a Unix shell in. And mksh is first and foremost a Berkeley Unix shell.

[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-11 Thread Jason Spiro
In comment #4, Thorsten Glaser wrote: > “help” is aliased to “man” in most beginner-friendly GNU/Linux > distributions, in /etc/profile usually. Not in beginner-unfriendly environments, such as the Android command- line environment. By responding to the word "help" with the 50 bytes of text I sug

Re: [Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-08 Thread Thorsten Glaser
Jason Spiro dixit: >If the user runs >"mksh -?" This expands to a file in the current directory that begins with - and has another byte after it. >"mksh /?" This expands to a single-byte file (or directory) under / >"mksh -v" This is already used by POSIX, see “man mksh”, under the “set” bui

[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-07 Thread Jason Spiro
> A flag to display the version is not historically > customary in Unix programs. > The adoption of -V (not -v which is verbose) is > recent and not normally used. I stand corrected. > GNU --long-options have nothing to do > with a Unix program. Touché. > The Android user would just type “set“,

[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-07 Thread Thorsten Glaser
No. • GNU --long-options have nothing to do with a Unix program. • A flag to display the version is not historically customary in Unix programs. The adoption of -V (not -v which is verbose) is recent and not normally used. • “mksh -x” is the same as running “set -x” in the shell, which means tha

[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-07 Thread Thorsten Glaser
(And I’m not going to embed long texts like this in the binary. The embedded customers (Android, OpenWrt, FreeWRT, OpenADK, etc.) would not like that size increase.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpa

[Bug 1366451] Re: "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen

2014-09-06 Thread Jason Spiro
** Summary changed: - mksh -v should display mksh's version number, plus the attached chunk of text, onscreen + "mksh -v" should display mksh's version number, plus the attached chunk of text, onscreen ** Also affects: mksh (Ubuntu) Importance: Undecided Status: New ** Also affects: