<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 6, 2023 at 6:09 PM Chet Ramey <<a href="mailto:chet.ramey@case.edu">chet.ramey@case.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 7/5/23 3:29 AM, Rob Landley wrote:<br>
<br>
<br>
>>>> It's really a useless concept, by the way.<br>
>>><br>
>>> It's not that simple: kill has to be built-in or it can't interface with job<br>
>>> control...<br>
>><br>
>> That's not what a special builtin is. `kill' is a `regular builtin' anyway.<br>
> <br>
> I started down the "rereading that mess" path and it's turning into "reading all<br>
> the posix shell stuff" which is not getting bugs fixed. And once again, this is<br>
> a BAD STANDARD. Or at least badly organized. There's three groups here:<br>
<br>
OK. This is a decision that was made, what, 45 years ago? These are the<br>
Bourne shell special builtins -- at least as of SVR4. Korn added a couple,<br>
but since the Bourne shell didn't have them, they were not added to the<br>
list.<br>
<br>
Special builtins will exit a non-interactive shell on an error, assignments<br>
preceding them persist, and they're found before shell functions in the<br>
command search order. That's pretty much it. It's not that the builtins<br>
have to be implemented interally, but that these have other properties.<br>
<br>
They're a POSIX concept, so bash conforms when in posix mode. In default<br>
mode, every builtin is treated the same.<br>
<br>
> 1) flow control commands: break, continue, dot, eval, exec, exit, trap, return.<br>
> <br>
> 2) variable manipulation commands: export, readonly, set, shift, unset.<br>
> <br>
> 3) random crap: colon, times.<br>
> <br>
> Why group 1 doesn't include "wait" I dunno.<br>
<br>
It's not a Bourne shell special builtin: errors in it don't exit the shell.<br>
<br>
<br>
Why group 2 has set but not read or<br>
> alias/unalias in it I couldn't tell you, <br>
<br>
read isn't a Bourne shell special builtin; errors in it don't exit the<br>
shell. The SVR4 shell doesn't have aliases (and aliases were originally<br>
optional in POSIX, part of the UPE).<br>
<br>
and for that matter cd is defined to<br>
> set $PWD.<br>
<br>
cd is a weird one. The v7 Bourne shell exited the shell if the directory<br>
argument didn't exist, and that didn't change until SVR4.2,</blockquote><div><br></div><div>and people complain unix isn't user-friendly... :-)</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">but POSIX<br>
declined to make it a special builtin.<br>
<br>
Distinguishing : from true seems deeply silly<br>
<br>
true wasn't a special builtin in the Bourne shell.<br>
<br>
(especially when [ and<br>
> test aren't)<br>
<br>
Not part of the Bourne shell, only came in in System III, never a special<br>
builtin.<br>
<br>
> and "times" is job control <br>
<br>
It's not. It's a straightforward interface to the `times' library function<br>
(originally system call in 7th edition).<br>
<br>
(it's smells like a jobs flag, but<br>
> they're not including bg/fg here either which are basically flow control group 1<br>
> above).<br>
<br>
Job control wasn't included until the SVR4.2 sh, and it was optional in<br>
POSIX for a long time.<br>
<br>
> <br>
> And having "command" _not_ be special is just silly:<br>
> <br>
> $ command() { echo hello; }<br>
> $ command ls -l<br>
> hello<br>
<br>
It really can't be; one of the uses for command is to suppress the effects<br>
of special builtins, so they won't exit the shell on error.<br>
<br>
> <br>
> There's only a few more commands like hash that CAN'T be implemented as child<br>
> processes, but they don't bother to distinguish them. <br>
<br>
It's not the difference between special builtins and external commands,<br>
it's the difference between regular builtins and special builtins.<br>
<br>
> I know there's the "this<br>
> may syntax error and exit the shell" distinction but don't ask me how set or<br>
> true are supposed to do that. <br>
<br>
set exits the shell on an invalid option and was special in the Bourne<br>
shell; true isn't a special builtin.<br>
<br>
(I _think_ they added set here because set -u can<br>
> cause a shell error later? Maybe? But then why unset? <br>
<br>
Well, unset didn't exist in the 7th edition shell, but it's special<br>
in the SVR4 shell. It can only fail if asked to unset a readonly<br>
variable or one of the shell's non-unsettable variables. It takes no<br>
options, does no argument checking for invalid identifiers, and unsetting<br>
a variable that's not set isn't an error, but when asked to unset a<br>
variable the shell says you can't, the shell exits.<br>
<br>
I think POSIX made unset a special builtin because the SVR4 sh did and<br>
so it would be found in the command search before a function. That gets<br>
important when you're trying to write a secure script,</blockquote><div><br></div><div>did the v7 bourne shell just not know whether it was interactive or not? (because, yeah, this kind of thing makes a lot more sense as an early `set -e`. but i can't imagine using this interactively!)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">especially when you<br>
can inherit functions from the environment (bash) or run a startup file for<br>
non-interactive shells.<br>
<br>
It doesn't seem to affect<br>
> flow control:<br>
> <br>
> $ readonly potato=x; for i in one two three; do echo $i; unset potato; done<br>
> one<br>
> bash: unset: potato: cannot unset: readonly variable<br>
> two<br>
> bash: unset: potato: cannot unset: readonly variable<br>
> three<br>
> bash: unset: potato: cannot unset: readonly variable<br>
<br>
If you were in posix mode it would exit the shell.<br>
<br>
> I guess it's just the sh -c 'a=b set d=e; echo $a' nonsense which only dash<br>
> seems to bother with, which is a good reason _not_ to do it if you ask me...<br>
<br>
Everyone does it. Bash does it in posix mode.<br>
<br>
> <br>
> In general, And this whole "can exit on error thing" doesn't seem hugely honored<br>
> even when posix says (implies) you can:<br>
> <br>
> $ declare -i potato=1/0<br>
> bash: declare: 1/0: division by 0 (error token is "0")<br>
> $ declare -i potato<br>
> $ set potato=1/0<br>
> $ echo $potato<br>
><br>
<br>
I guess I don't understand these examples. declare isn't a special builtin,<br>
and there's nothing wrong with setting $1 == "potato=1/0" even though set<br>
is a special builtin.<br>
<br>
> $<br>
> $ (set -x; echo hello ) 2>/dev/full<br>
> hello<br>
<br>
echo isn't a special builtin, either. But what if it were? It would exit<br>
the subshell either way.<br>
<br>
> Oh, by the way, I remember setting LINENO read only made the shell quite chatty,<br>
> but when I tested it just now it was ignored instead?<br>
> <br>
> $ readonly LINENO<br>
> $ echo $LINENO<br>
> 2<br>
> $ echo $LINENO<br>
> 3<br>
> $ declare -p LINENO<br>
> declare -ir LINENO="4"<br>
> $ echo $LINENO<br>
<br>
It would error if you actually tried to assign it a value, and, in posix<br>
mode, exit the shell.<br>
<br>
>>> I<br>
>>> remember I did make "continue&" work, but don't remember why...)<br>
>><br>
>> Why would that not work? It's just a no-op; no semantic meaning.<br>
> <br>
> Not _quite_ a NOP:<br>
<br>
I mean, it creates a child process which immediately exits, but it has<br>
no effect on the shell other than to note that we created an asynchronous<br>
child process (which sets $!) that exited. It certainly doesn't affect<br>
flow control.<br>
<br>
> <br>
> $ for i in one two three; do echo a=$i; continue& b=$i; done<br>
> a=one<br>
> [1] 30698<br>
> a=two<br>
> [2] 30699<br>
> a=three<br>
> [3] 30700<br>
> [1] Done continue<br>
> [2]- Done continue<br>
> <br>
> Notice the child processes and lack of b= lines.<br>
<br>
Why would you expect a b= line? Even if the `continue&' were not there,<br>
the `;' after the first echo command makes the b= line a separate simple<br>
command. Who's going to echo `b=$i' and why would they? Maybe if you had<br>
an `echo' in there instead.<br>
<br>
> No, if you want a NOP, put a flow control statement in a pipe:<br>
> <br>
> $ for i in one two three; do echo a=$i; continue | echo b=$i; echo c=$i; done<br>
<br>
These are not equivalent commands.<br>
<br>
<br>
> Backslash in double quote context leaves most characters alone but eats \ $ and<br>
> newline, and unquoted HERE documents are in double quote context.<br>
<br>
Yes, but:<br>
<br>
> <br>
> $ cat<<EOF<br>
> > \a \b \c \$ \\ \d \<br>
> > EOF<br>
> > EOF<br>
> \a \b \c $ \ \d EOF<br>
> <br>
> As far as I can tell, it's NOT more than \$ \\ and \<newline> that get special<br>
> treatment in this context? <br>
<br>
Plus double quote (in double quotes, but not here-documents) and<br>
backquote.<br>
<br>
> <br>
> $ cat<<EOF<br>
> > <(echo hello)<br>
> > EOF<br>
> <(echo hello)<br>
> $ cat<<EOF<br>
> > <(echo $(echo potato))<br>
> > EOF<br>
> <(echo potato)<br>
> <br>
> Yup, just the $ ones and those three \ ones?<br>
<br>
Backslash escapes five characters in double quotes, four in here-documents<br>
with unquoted delimiters.<br>
<br>
<br>
> And it's the short-circuit logic again:<br>
> <br>
> $ echo $((1?2:(1/0)))<br>
> 2<br>
> $ echo $((1&&(1/0)))<br>
> bash: 1&&(1/0): division by 0 (error token is "0)")<br>
> $ echo $((1||(1/0)))<br>
> 1<br>
<br>
That's not the same thing; arithmetic expression evaluation follows the<br>
C rules for suppressing evaluation.<br>
<br>
> <br>
> I hadn't put an "echo" in there, but I'd noticed that \" is already not removed<br>
> in HERE context. I'd _forgotten_ that it is in "abc" context.<br>
<br>
Right.<br>
<br>
> I have a vague todo item for that, but the problem is my data structures don't<br>
> recurse like that so I don't have a good place to stick the parsed blockstack<br>
> for $() and <() and so on, but it just seems wasteful to re-parse it multiple<br>
> times and discard it?<br>
<br>
It kind of is, but you need to keep the text around for something like<br>
<br>
cat <<$(a)<br>
x<br>
$(a)<br>
<br>
which POSIX says has to work. ash-derived shells like dash fall over dead<br>
when presented with that, but it's rare enough that I guess it's a win.<br>
Even bash isn't perfect about reconstituting the text.<br>
<br>
<br>
> Yeah yeah, premature optimization. I'm fiddling with this stuff a bit anyway for<br>
> function definitions, but when you define a function inside a function my code<br>
> has a pass that goes back and chops the inner functions out and puts them in a<br>
> reference counted list and replaces them with a reference:<br>
> <br>
> $ x() { y() { echo why; }; echo ecks; unset -f x; y; }; x; y; x<br>
> ecks<br>
> why<br>
> why<br>
> bash: x: command not found<br>
> <br>
> I don't THINK I can do a local function, it's a global function namespace, they<br>
> outlive the text block that defined them, and you can still be running a<br>
> function that is no longer defined, so... reference counting. :P<br>
<br>
Reference counting is ok. Bash just copies the parsed function body (x in<br>
this case) and executes that, then frees it. That way you can let the<br>
function get unset and not worry about it.<br>
<br>
> But still, the pipeline list itself isn't what's nesting there. I think. And<br>
> given that arguments can be "abc$(potato)xyz" with the nested thingy in the<br>
> middle of arbitrary other nonsense, deferring dealing with that until variable<br>
> resolution time and then just feeding the string between the two () to<br>
> do_source() made sense at the time...<br>
<br>
You have to parse it to find the end of the command substitution, bottom<br>
line. You can't get it right otherwise.<br>
<br>
<br>
>>>>>> The current edition is from 2018.<br>
>>>>><br>
>>>>> Except they said 2008 was the last feature release and everying since is<br>
>>>>> bugfix-only, and nothing is supposed to introduce, deprecate, or significantly<br>
>>>>> change anything's semantics.<br>
>><br>
>> When, by the way?<br>
> <br>
> When did they say this? Sometime after the 2013 update went up, before the 2018<br>
> update went up. It was on the mailing list, but...<br>
<br>
I don't remember seeing that is all.<br>
<br>
<br>
>>> The project isn't dead, but those are defined as bugfix releases. Adding new<br>
>>> libc functions or command line options, or "can you please put cpio and tar back<br>
>>> in the command list", are out of scope for them.<br>
<br>
cpio and tar were two of those incompatible-never-the-twain-shall-meet<br>
things, so we have pax (and peace too, I guess).<br>
<br>
<br>
> It was nice when posix noticed that glibc'd had dprintf() for years, it was nice<br>
> when they noticed linux had openat() and friends, but it was never a leading<br>
> indicator. <br>
<br>
They don't go out and look for this stuff. Someone has to write a proposal<br>
in the proper format and shepherd it through. Look at how long it took<br>
for $'string'.<br>
<br>
> When they removed "tar" and "cpio", Linux didn't. (Initramfs is cpio.<br>
> RPM is cpio.) Nobody installs "pax" by default.<br>
<br>
$ type -a pax<br>
pax is /bin/pax<br>
<br>
If you want to pass a certification test, you do.<br></blockquote><div><br></div><div>(which might explain why i see it on my mac but not on any of my debian or ubuntu boxes, or raspberry pis.)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> Document, not legislate...<br>
<br>
Except back in 1990 where the tar folks and the cpio folks both politely<br>
told each other to pound sand, and that they'd never approve the rival<br>
format and utility, and POSIX had to do something.<br>
<br>
> <br>
>>> Ken or Dennis having a reason means a<br>
>>> lot to me because those guys were really smart. The Programmers Workbench guys,<br>
>>> not so much. "Bill Joy decided" is a coin flip at best...<br>
>><br>
>> They all had different, even competing, requirements and goals. Mashey and<br>
>> the PWB guys were developing for a completely different user base than the<br>
>> original room 127 group, and Joy and the BSD guys had different hardware<br>
>> *and* users, and then the ARPA community for 4.2 BSD.<br>
>><br>
>> Maybe things would be slightly different if Reiser's VM system (the one Rob<br>
>> Pike raves about) had been in 32/V and then eventually made it back to<br>
>> Research in time for 8th edition, but that's not the way it worked out.<br>
> <br>
> The Apple vs Franklin decision extended copyright to cover binaries in 1983,<br>
> clearing the way for AT&T to try to commercialize the hell out of System III/V<br>
<br>
I think the 1982 decision that allowed at&t to get into the computer and<br>
software business after giving up its telephony monopoly had more to do<br>
with it, but that certainly helped at&t.<br>
<br>
After that, at&t and its "consider it standard!" campaign eventually did<br>
the job.<br>
<br>
> But I still think the main stake to the heart was the Bell Labs guys getting put<br>
> back in their bottle by AT&T legal, meaning nobody ever saw the Labs' Unix<br>
> Release 8-10, or got to look at Plan 9 before Y2K.<br>
<br>
They weren't really interested in writing software for commercial use, and<br>
at&t was very interested in commercializing Unix.<br>
<br>
> The result of $(blah) and $BLAH are handled the same there? Quotes _inside_ the<br>
> subshell are in their own context.<br>
<br>
Yes, that's the point I was trying to make.<br>
<br>
> Hmmm... Smells a bit like indexed arrays are just associative arrays with an<br>
> integer key type, but I guess common usage leans towards a span-based<br>
> representation?<br>
<br>
It depends on whether or not you want to support very large arrays. The<br>
bash implementation has no trouble with<br>
<br>
a=( [0x1000000]=$'\371\200\200\200\200' [0x1000001]=$'\371\200\200\200\201' <br>
[0x1000002]=$'\371\200\200\200\202' [0x1000003]=$'\371\200\200\200\203' <br>
[0x1000004]=$'\371\200\200\200\204' )<br>
<br>
Which will eat huge amounts of memory if you use a C-type array. Bash uses<br>
a doubly-linked list with some saved indices to make sequential access<br>
very fast.<br>
<br>
>> You just have to be<br>
>> really disciplined about how you treat this `exists but unset' state.<br>
> <br>
> $ export WALRUS=42; x() { local WALRUS=potato; unset WALRUS; WALRUS=abc;<br>
> > echo $WALRUS; env | grep WALRUS;}; x<br>
> abc<br>
> WALRUS=42<br>
> <br>
> Ok, now I'm even more confused. It's exporting inaccessable values? (I know that<br>
> you can export a local, which goes away when the function returns...)<br>
<br>
Creating a local variable, which does not inherit the attributes from any<br>
global variable, does not cause the environment to be recreated.<br>
<br>
>>> Anyway, that leaves VAR_ARRAY, and VAR_DICT (for associative arrays). I take it<br>
>>> a sparse array is NOT a dict? (Are all VAR_ARRAY sparse...?)<br>
>><br>
>> The implementation doesn't matter. You have indexed arrays, where the<br>
>> subscript is an arithmetic expression, and associative arrays, where the<br>
>> subscript is an arbitrary string. You can make them all hash tables, if<br>
>> you want, or linked lists, or whatever. You can even make them C arrays,<br>
>> but that will really kill your associative array lookup time.<br>
> <br>
> Eh, sorted with binary search, but that has its own costs...<br>
<br>
Resorting the array (or rebalancing a tree, or whatever) every time you add<br>
a value? That's more work than is worth it.<br>
<br>
> Again, sounds like an indexed array is just an associative array with an integer<br>
> lookup key...<br>
<br>
Sure, if you want to look at it that way.<br>
<br>
> <br>
>>> Glancing at my notes for any obvious array todo bits, it's just things like "WHY<br>
>>> does unsetting elements of BASH_ALIASES not remove the corresponding alias, does<br>
>>> this require two representations of the same information?<br>
>><br>
>> There's no good reason, I just haven't ever made that work.<br>
<br>
There's no unset hook for dynamic variables.<br>
<br>
>>>>> An "initial operand", not an argument.<br>
>>>><br>
>>>> That's the same thing. There are no options to POSIX echo. Everything is<br>
>>>> an operand. If a command has options, POSIX specifies them as options, and<br>
>>>> it doesn't do that for echo.<br>
>>><br>
>>> Hence the side-eye. In general use, echo has arguments. But posix insists it<br>
>>> does not have arguments. <br>
<br>
I was never sure what this is supposed to mean. What POSIX calls operands<br>
are arguments, are they not?<br>
<br>
>> What did you think would happen to the unquoted backslash?<br>
> <br>
> I meant asking newbies to learn to use printf from the command line before echo<br>
> means they have to quote the argument and add \n on the end as part of "simple"<br>
> usage, which seems a fairly heavy lift.<br>
<br>
The sole advantage echo has for a newbie is that it adds the newline.<br>
<br>
>>>>> Maybe posix should eventually break down and admit this is a thing? "ls . -l"<br>
>>>>> has to work,<br>
<br>
Why does `ls . -l' have to work?<br>
<br>
ls . -l<br>
ls: -l: No such file or directory<br>
.:<br>
[directory contents]<br>
<br>
If the Linux folks want to reorder arguments so that things that look like<br>
options come first, then they can do it as an extension.<br>
<br>
<br>
> You asked why do I think posix doesn't acknowledge $THING today. My experience<br>
> with raising issues where posix and common usage seemed to have significant<br>
> daylight between them involved abrasive gatekeeping, resulting in me wandering<br>
> away again and leaving the historical memorial to HP-UX and A/UX and so on to<br>
> its own devices.<br>
> <br>
> It's possible my experience was unusual?<br>
<br>
Not necessarily; Jorg treated a lot of people that way. But the mistake is<br>
treating him as a representative of anything but himself or a member of the<br>
working group.<br>
<br>
>>> (Yes, I'm aware of recent changes. That's why I re-engaged with Posix, felt I<br>
>>> owed it to them since the condition under which I said I'd come back<br>
>>> unexpectedly happened. But having already written them off, my heart really<br>
>>> wasn't in it. I _should_, but I'm juggling too many other balls...)<br>
>>><br>
>>>> Options only exist as<br>
>>>> such if they come before the first non-option argument.<br>
>>><br>
>>> $ cat <(echo hello) -E<br>
>>> hello$<br>
>><br>
>> Yeah, looks like a bug in cat to me:<br>
>><br>
>> $ cat <(echo hello) -E<br>
>> hello<br>
>> cat: -E: No such file or directory<br>
>><br>
>> The GNU utilities do all sorts of argument reordering, but that doesn't<br>
>> mean you're going to get that in POSIX.<br>
> <br>
> See "daylight between what posix says and what reality's been doing for<br>
> decades", above.<br>
<br>
POSIX isn't a "let's rubberstamp what Linux is doing despite what other<br>
implementations do" kind of group.<br>
<br>
> When I see reality does not match posix, I do not automatically conclude that<br>
> reality is wrong.<br>
<br>
Your day-to-day computing reality, sure. My day-to-day computing<br>
environment is different, for example, and in this case, it seems to<br>
match POSIX.<br>
<br>
> <br>
>>>> Options have to<br>
>>>> begin with `-'.<br>
>>><br>
>>> tar tvzf blah.tgz<br>
>>> ps ax<br>
>>> ar t /usr/lib/libsupp.a<br>
<br>
Yep, not posix.<br>
<br>
>> That's not inconsistent with the requirement that ssh options appear before<br>
>> other arguments.<br>
> <br>
> My point was those are basically the only cases where that requirement exists.<br>
> The rest of them can "rm dir -r" and what posix says about it doesn't matter.<br>
<br>
Sure, on Linux.<br>
<br>
> (And yes I have a TODO item to have wildcards expand to "./-file" as necessary...)<br>
<br>
Contortions like that are why argument reordering is a bad idea.<br>
<br>
<br>
> There are instances where they've been good, yes. Removing tar was "legislate,<br>
> not document" and they explicitly refused to acknowledge that it was a mistake<br>
> over a decade later.<br>
<br>
Refer to my previous comment about pounding sand. The standard would not<br>
have been approved in 1992 with tar and cpio. There were a lot more<br>
companies with a stake in it back then.<br>
<br>
> <br>
> The FSF required signed paper copyright assignments to be filed with the boston<br>
> office for decades.<br>
<br>
I know.<br>
<br>
> The "cathedral" in "The Cathedral And the Bazaar" was the<br>
> GNU project, as mentioned in the paper's abstract on the 1998 Usenix website<br>
> <a href="https://www.usenix.org/conference/1998-usenix-annual-technical-conference/software-development-models-cathedral-and-bazaar" rel="noreferrer" target="_blank">https://www.usenix.org/conference/1998-usenix-annual-technical-conference/software-development-models-cathedral-and-bazaar</a><br>
<br>
Kind of. It was mentioned, and used as an example, but Kirk giving the talk<br>
with esr kind of biased the Cathedral model towards BSD.<br>
<br>
> It's kinda bureaucracy-ish.<br>
<br>
As the stakes rise, and the scope grows, processes grow to meet them. The<br>
culture changes.<br>
<br>
<br>
> I have a whole bunch of blue sky todo items, but my _focus_ is getting A)<br>
> Android self-hosting,<br>
<br>
Yeah, there's a ways to go.<br>
<br>
<a href="https://lists.gnu.org/archive/html/help-bash/2023-06/msg00117.html" rel="noreferrer" target="_blank">https://lists.gnu.org/archive/html/help-bash/2023-06/msg00117.html</a><br>
<br>
They mess up the simple stuff.<br></blockquote><div><br></div><div>define "mess up"... Android deliberately has strict seccomp filters for apps, and the syscalls mentioned in that post are on the "no" list. Android gives each _app_ a different uid, so there's typically nothing useful you can do here anyway. (things are a bit different if you're actually part of the OS, but bash being GPL makes that unlikely :-( )</div><div><br></div><div>(yes, i agree that it's mildly unfortunate that there's no special case for "i don't actually want to change anything", which i think is the case they're talking about in that post, and i've wondered about adding that to libc once or twice, but my feeling is that it wouldn't be particularly useful in practice because _that_ kind of code probably needs a rethink anyway when porting to Android.)</div><div><br></div><div>but, yeah, "security" and "self-hosting" aren't exactly friends ... the 1% bad guys being the reason we can't have nice things, as usual. (executing code off a writable filesystem being frowned upon.)</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> And that was still better than the horrors of gentoo! (I met with Daniel Robbins<br>
> in person a couple times and we tried to get stuff to work, but that was after<br>
> he left gentoo and started funtoo).<br>
<br>
Don't start with me about gentoo.<br>
<br>
> Eventually the Alpine Linux guys came along and built a distro around the work<br>
> I'd done (after I'd already left it behind, but hey).<br>
<br>
Isn't that the default Linux image for Docker?<br>
<br>
> Plus make and bash, which can't be external gpl packages _and_ ship in the<br>
> android base image.<br>
<br>
Thorsten would be happy for android to keep using mksh, I'm sure.<br></blockquote><div><br></div><div>(and i'm going to have a lot of fun dealing with compatibility issues if/when we move /bin/sh over...)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
>>>> What are you using now?<br>
>>><br>
>>> $ bash --version<br>
>>> GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)<br>
>><br>
>> Jesus, your distro can't even be bothered to apply all the patches for a<br>
>> single version?<br>
> <br>
> Devuan is a thin skin over Debian, when I ask about this sort of thing on the<br>
> #devuan libra.chat channel they point me at<br>
> <a href="https://packages.debian.org/search?keywords=bash" rel="noreferrer" target="_blank">https://packages.debian.org/search?keywords=bash</a> and similar.<br>
<br>
Debian still has bug reports on their bash page from 2005; how am I<br>
supposed to take that seriously?<br>
<br>
<a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=335642" rel="noreferrer" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=335642</a><br>
<br>
Chet<br>
<br>
-- <br>
``The lyf so short, the craft so long to lerne.'' - Chaucer<br>
``Ars longa, vita brevis'' - Hippocrates<br>
Chet Ramey, UTech, CWRU <a href="mailto:chet@case.edu" target="_blank">chet@case.edu</a> <a href="http://tiswww.cwru.edu/~chet/" rel="noreferrer" target="_blank">http://tiswww.cwru.edu/~chet/</a><br>
<br>
_______________________________________________<br>
Toybox mailing list<br>
<a href="mailto:Toybox@lists.landley.net" target="_blank">Toybox@lists.landley.net</a><br>
<a href="http://lists.landley.net/listinfo.cgi/toybox-landley.net" rel="noreferrer" target="_blank">http://lists.landley.net/listinfo.cgi/toybox-landley.net</a><br>
</blockquote></div></div>