On 3/12/26 09:00, Janis Papanagnou wrote:
On 3/12/26 08:21, Lawrence D?Oliveiro wrote:
<https://arstechnica.com/gadgets/2021/09/command-line-wizardry-part-
This article
two-variables-and-loops-in-bash/>
I took the time to look more closely into that link above.
continues the author?s intro to basic command-line concepts. But it
repeats a failing I see all too often in shell scripting: [...]
Not only "a [one] failing"; it's full of bad coding practices!
(I suggest to abstain from it.)
Right. I can only agree with you.
The more general problem is that there's so much stuff about shell
programming on the web but most of it is sadly of very bad quality.
It's exactly a paragon for the said many sources of bad quality.
<https://arstechnica.com/gadgets/2021/09/command-line-wizardry-part-
two-variables-and-loops-in-bash/>
I took the time to look more closely into that link above.
It's a... curious article, the first part of it seems to want to explain
some operations with variables by repeatedly stating that the syntax is "unsettling".
Besides the whole thing about relegating bash to some place where it's
only used as an interactive command interpreter and where it's not a
"real language"
ŽIf you need to write a script for repeated use?particularly one
with significant logical branching and evaluation?I strongly
recommend a ?real language? instead of Bash.¯
ŽAlthough the switch back and forth between referencing hello and
$hello is deeply unsettling if you?re only familiar with ?real?
languages,[...]¯
This is silly, I mean, one of the key strengths of UNIX shells is that
you can use them to write scripts. In fact, these might be more suitable tools for some operations...
> continues the author?s intro to basic command-line concepts. But it
> repeats a failing I see all too often in shell scripting: [...]
Not only "a [one] failing"; it's full of bad coding practices!
(I suggest to abstain from it.)
Right. I can only agree with you.
The more general problem is that there's so much stuff about shell
programming on the web but most of it is sadly of very bad quality.
It's exactly a paragon for the said many sources of bad quality.
I liked the detail near the end where it's apparently *echo* that gets
rid of the whitespace in the argument, and not the shell's word
splitting.
On 2026-03-14 12:07, Nuno Silva wrote:
The more general problem is that there's so much stuff about shell
programming on the web but most of it is sadly of very bad quality.
It's exactly a paragon for the said many sources of bad quality.
I liked the detail near the end where it's apparently *echo* that gets
rid of the whitespace in the argument, and not the shell's word
splitting.
I'm not sure what specific part you have in mind. - Close to the
end I see for example
echo zfs destroy \"$snap\"
A form with escapes that I'd never had written that way.
On 2026-03-14, Janis Papanagnou wrote:
On 2026-03-14 12:07, Nuno Silva wrote:
The more general problem is that there's so much stuff about shell
programming on the web but most of it is sadly of very bad quality.
It's exactly a paragon for the said many sources of bad quality.
I liked the detail near the end where it's apparently *echo* that gets
rid of the whitespace in the argument, and not the shell's word
splitting.
I'm not sure what specific part you have in mind. - Close to the
end I see for example
echo zfs destroy \"$snap\"
A form with escapes that I'd never had written that way.
In the section before that, I think.
It's the last paragraph before the code block(s) before the heading
"Putting it all together":
ŽOne last note: echo itself will mangle leading spaces, so if you
just echo $x instead of echo "$x" (note the quotation marks), you?ll
see stripped leading and trailing spaces, even though the content of
the variable itself isn?t stripped. This is the very devil to figure
out if you don?t already know what?s going on!¯
On Sat, 14 Mar 2026 22:14:50 -0400, c186282 wrote:
C-Shell is maybe a little more interesting, as it kinda-sorta has a
'C' look and feel. Indeed it is one of the things that first
attracted me to the Unix/Linux world.
My preference was tcsh, but in the early '90s bash conquered the Linux domain.
Nuno Silva <nunojsilva@invalid.invalid> wrote or quoted:
ŽOne last note: echo itself will mangle leading spaces,
When you input "echo $x", the shell substitutes "$x" by the value of
x with leading and trailing spaces stripped. The shell, not echo!
On 3/15/26 00:55, rbowman wrote:
On Sat, 14 Mar 2026 22:14:50 -0400, c186282 wrote:
C-Shell is maybe a little more interesting, as it kinda-sorta has a
'C' look and feel. Indeed it is one of the things that first
attracted me to the Unix/Linux world.
My preference was tcsh, but in the early '90s bash conquered the Linux
domain.
It did.
But that doesn't make it "best" :-)
On 3/15/26 00:55, rbowman wrote:
My preference was tcsh, but in the early '90s bash conquered the Linux
domain.
˙ It did.
˙ But that doesn't make it "best"˙ :-)
But that doesn't make it "best" ?Actually, it does. But being "the best" doesn't mean it is any good.
And, the thing is, this last applies to a lot of things in life. People
will say "Our system is the best" and they are right, only because, unfortunately, no one has yet found anything better. But that doesn't mean that system is any good, and, in fact, often it is really lousy.
On 2026-03-15, Stefan Ram wrote:
Nuno Silva <nunojsilva@invalid.invalid> wrote or quoted:
One last note: echo itself will mangle leading spaces,
When you input "echo $x", the shell substitutes "$x" by the value of
x with leading and trailing spaces stripped. The shell, not echo!
Indeed. Sounds like the kind of thing to explain properly in a
tutorial. The actual explanation might actually be less complex or
confusing (or surprising) than this.
On Sun, 15 Mar 2026 12:30:16 -0000 (UTC), Kenny McCormack wrote:
Disclaimer: I actually think bash is a pretty good and useful
tool/shell/language, but it does have a lot of, um, er, quirks.
The biggest thing I hit was my tcsh aliases had to be converted to >functions.
On Sun, 15 Mar 2026 04:01:10 -0400, c186282 wrote:
On 3/15/26 00:55, rbowman wrote:
On Sat, 14 Mar 2026 22:14:50 -0400, c186282 wrote:
C-Shell is maybe a little more interesting, as it kinda-sorta has >>>> a 'C' look and feel. Indeed it is one of the things that first
attracted me to the Unix/Linux world.
My preference was tcsh, but in the early '90s bash conquered the Linux
domain.
It did.
But that doesn't make it "best" :-)
In a larger view I think 'survival of the fittest' really is 'survival of anything not too screwed up to live.' The x86 architecture wasn't the
best either, but here we are.
On Sun, 15 Mar 2026 23:36:31 -0400, c186282 wrote:backup
Biggest thing I ever wrote in Bash was a version of my company
plan, about 600 active lines. However the job was kind of 'modular'
so I could copy and slightly tweak the backup sections above. It
worked fine, but was very annoying to mod. Went back to a Python,
then Pascal, version.
All I've ever done w.r.t bash is tweaks to .bashrc. By the time I reluctantly moved to bash I was already using Python for most tasks.
Didn't need to learn a new shell.
I stumble into enough unwanted learning experiences. I install Damn Small Linux in a VM on the Fedora box. No problem. The terminal is URxvtand the
damn thing was semi-transparent. .Xresources includes a file downhalf-transparent.
the .config rathole that had transparent set to false. However there's
also a 'shade' that was set to 50 which apparently means
0 did the trick. It also gives you a choice of Fluxbox or JWM.I always use LXDE or XFCE ... and both use LightDM.
DSL has gotten fatter since its reboot and is up to 900 MB which stillMy original DSL wasn't terrible, version 2 could
isn't bad in the time of 4 GB+ isos.
In a larger view I think 'survival of the fittest' really is 'survival of anything not too screwed up to live.' The x86 architecture wasn't the
best either, but here we are.
On 15/03/2026 20:44, rbowman wrote:
In a larger view I think 'survival of the fittest' really is 'survival of
anything not too screwed up to live.'˙ The x86 architecture wasn't the
best either, but here we are.
Yes. The world is comprised of things that haven't become extinct (yet)...
A million years of dinosaurs and now just jackdaws.
On 3/16/26 09:06, The Natural Philosopher wrote:
On 15/03/2026 20:44, rbowman wrote:
In a larger view I think 'survival of the fittest' really is
'survival of
anything not too screwed up to live.'˙ The x86 architecture wasn't the
best either, but here we are.
Yes. The world is comprised of things that haven't become extinct
(yet)...
A million years of dinosaurs and now just jackdaws.
˙ 50 million years of dinosaurs !
˙ It IS odd how all but the birdy side of the
˙ entire line disappeared so completely. Hey,
˙ maybe it was space alien 'big game hunters' !
On 16/03/2026 13:52, c186282 wrote:
On 3/16/26 09:06, The Natural Philosopher wrote:
On 15/03/2026 20:44, rbowman wrote:˙ 50 million years of dinosaurs !
In a larger view I think 'survival of the fittest' really is
'survival of anything not too screwed up to live.'˙ The x86
architecture wasn't the best either, but here we are.
Yes. The world is comprised of things that haven't become extinct
(yet)...
A million years of dinosaurs and now just jackdaws.
I stand corrected...
˙ It IS odd how all but the birdy side of the
˙ entire line disappeared so completely. Hey,
˙ maybe it was space alien 'big game hunters' !
They fell through cracks in reality that the birds flew over?
The Natural Philosopher <tnp@invalid.invalid> writes:
On 16/03/2026 13:52, c186282 wrote:
On 3/16/26 09:06, The Natural Philosopher wrote:
On 15/03/2026 20:44, rbowman wrote:˙ 50 million years of dinosaurs !
In a larger view I think 'survival of the fittest' really is
'survival of anything not too screwed up to live.'˙ The x86
architecture wasn't the best either, but here we are.
Yes. The world is comprised of things that haven't become extinct
(yet)...
A million years of dinosaurs and now just jackdaws.
I stand corrected...
Nearer 168M years!
˙ It IS odd how all but the birdy side of the
˙ entire line disappeared so completely. Hey,
˙ maybe it was space alien 'big game hunters' !
They fell through cracks in reality that the birds flew over?
I gather than most of the birds and rather a lot of mammals went exinct
too. A 10km asteroid will really mess a planet up.
A 10km asteroid will really mess a planet up.
I gather than most of the birds and rather a lot of mammals went exinct
too. A 10km asteroid will really mess a planet up.
On 16/03/2026 14:35, Richard Kettlewell wrote:
I gather than most of the birds and rather a lot of mammals went exinct
too. A 10km asteroid will really mess a planet up.
It's amazing that the meteor missed the visitor centre in AZ ;)
On 16/03/2026 14:35, Richard Kettlewell wrote:
I gather than most of the birds and rather a lot of mammals went exinct
too. A 10km asteroid will really mess a planet up.
It's amazing that the meteor missed the visitor centre in AZ ;)
On Mon, 16 Mar 2026 05:11:30 -0400, c186282 wrote:
I got into Linux back when RH/Slack/OSu came on 5-1/4 disks at the
superstore. Don't think Python existed yet.
If you wanted a 'script' then you did it in Bash or one of the
others.
Python predates Linux by a little although it was way behind Perl in popularity. Python 2 came out in 2000. Red Hat Linux not only included the infamous gcc 2.96 that couldn't compile the kernel and a Python version
that broke existing scripts. As I've said, it took me 25 years to give
Fedora a chance.
Fortunately I skipped Py2 ... kept hearing Py3 was coming out and
would be kind-of different. Why learn the 'wrong way' ?
The Esri Desktop installation included Python 2, which they started to use
as VBA faded away. ActiveState Python was also useful since it had Win32 extensions. I did have to do some rework for Python 3. It wasn't as bad
as some of the other transitions like Angular.js to Angular. It didn't
affect me but Visual Basic to VB.NET was a real mess.
Config files CAN be good - or HELL. All kinds of weird, often
poorly/non-documented stuff in them.
The X system is a particular pain. I still remember trying to get
original X in RH to see my monitor,
KB and mouse ... took a couple days of fooling around, sometimes
shooting in the dark. Was younger then however ...
I don't have a problem with config files, either the old ini style or the newer xml or JSON types but I wasn't familiar with rxvt. I tweak xterm
in .Xresources but in this case another config where most of the work is
done is included in .Xresourcces like your MX. Hopefully the hack for the
vim cursor in xterm also works.
> DSL has gotten fatter since its reboot and is up to 900 MB which
> still isn't bad in the time of 4 GB+ isos.
My original DSL wasn't terrible, version 2 could sometimes get to
20mbs. My 'new and improved'
5G thingie almost never gets to 20mbs, 15 is about the top almost all
the time, under 10 more common.
DSL -- Damn Small Linux. I don't know anything about the other DSL. afaik
it never made it past the city line and didn't even have total coverage in town.
I learned that you could use them to write books from a famous SF author from a column in Analog SF magazine. He was using CPM which
was not a cheap thing at the time.
On Mon, 16 Mar 2026 13:29:49 -0700, Bobbie Sellers wrote:
I used Knoppix on a 5.25 inch CD to remove a Windows password once or
twice that was Knoppix 3.4, I believe. I got it with a laarge paperback
Knoppix for Dummies or some such title at a Borders Book Store. In the
early 2000s.
Knoppix is still around. Like Tails I don't think you can install it so I can't play with it is a VM.
On 16/03/2026 13:52, c186282 wrote:
On 3/16/26 09:06, The Natural Philosopher wrote:
On 15/03/2026 20:44, rbowman wrote:
In a larger view I think 'survival of the fittest' really is
'survival of
anything not too screwed up to live.'˙ The x86 architecture wasn't the >>>> best either, but here we are.
Yes. The world is comprised of things that haven't become extinct
(yet)...
A million years of dinosaurs and now just jackdaws.
˙˙ 50 million years of dinosaurs !
I stand corrected...
˙˙ It IS odd how all but the birdy side of the
˙˙ entire line disappeared so completely. Hey,
˙˙ maybe it was space alien 'big game hunters' !
They fell through cracks in reality that the birds flew over?
The Natural Philosopher <tnp@invalid.invalid> writes:
On 16/03/2026 13:52, c186282 wrote:
On 3/16/26 09:06, The Natural Philosopher wrote:
On 15/03/2026 20:44, rbowman wrote:˙ 50 million years of dinosaurs !
In a larger view I think 'survival of the fittest' really is
'survival of anything not too screwed up to live.'˙ The x86
architecture wasn't the best either, but here we are.
Yes. The world is comprised of things that haven't become extinct
(yet)...
A million years of dinosaurs and now just jackdaws.
I stand corrected...
Nearer 168M years!
˙ It IS odd how all but the birdy side of the
˙ entire line disappeared so completely. Hey,
˙ maybe it was space alien 'big game hunters' !
They fell through cracks in reality that the birds flew over?
I gather than most of the birds and rather a lot of mammals went exinct
too. A 10km asteroid will really mess a planet up.
On 16/03/2026 14:35, Richard Kettlewell wrote:
I gather than most of the birds and rather a lot of mammals went exinct
too. A 10km asteroid will really mess a planet up.
It's amazing that the meteor missed the visitor centre in AZ ;)
On Mon, 16 Mar 2026 13:06:43 +0000, The Natural Philosopher wrote:
On 15/03/2026 20:44, rbowman wrote:
In a larger view I think 'survival of the fittest' really is 'survival
of anything not too screwed up to live.' The x86 architecture wasn't
the best either, but here we are.
Yes. The world is comprised of things that haven't become extinct
(yet)...
A million years of dinosaurs and now just jackdaws.
When I lived in New Hampshire there was a place in one of the bays where I could catch horseshoe crabs by hand. It was strictly catch and release; I only wanted to look at an extremely successful design up close.
https://en.wikipedia.org/wiki/Horseshoe_crab
On Tue, 17 Mar 2026 00:02:45 GMT, Charlie Gibbs wrote:
On 2026-03-16, Bobbie Sellers <bliss-sf4ever@dslextreme.com> wrote:
I learned that you could use them to write books from a famous SF
author from a column in Analog SF magazine. He was using CPM which was
not a cheap thing at the time.
Sounds like Jerry Pournelle. His regular Byte column was fun to read,
at least until it turned into an endless account of trying to get
Windows boxes to work. He gave each of his computers a name; the IBM PC
was called Lucy because he found that, like the Peanuts comic strip
character, it was quite a fussbudget.
I miss him and I also miss the era when Byte was more hardware oriented
with Ciacia's column. iirc he thought the sun rose on WordPerfect.
Damn Small Linux includes quite a few lightweight applications, one of
which is AbiWord. I don't have a use for a word processor but that one is more my speed than LibreOffice, OpenOffice, or OneOffice. I did use
WordStar since it was bundled on a CP/M machine and was better that vi
(the real Bill Joy vi).
On 3/16/26 10:35, Richard Kettlewell wrote:
The Natural Philosopher <tnp@invalid.invalid> writes:
On 16/03/2026 13:52, c186282 wrote:
On 3/16/26 09:06, The Natural Philosopher wrote:
On 15/03/2026 20:44, rbowman wrote:˙ 50 million years of dinosaurs !
In a larger view I think 'survival of the fittest' really is
'survival of anything not too screwed up to live.'˙ The x86
architecture wasn't the best either, but here we are.
Yes. The world is comprised of things that haven't become extinct
(yet)...
A million years of dinosaurs and now just jackdaws.
I stand corrected...
Nearer 168M years!
Depends on def of 'dinosaur'. There were 'family'
going back that far ... but the ones WE usually
think of were of later origin - Jurassic/Triassic.
Anyway - no cities, no pyramids, no tablets, no
industrial waste ... 168 million years of NO GAIN.
"Intelligence" is SERIOUSLY ABNORMAL in the DarwinVerse.
˙ It IS odd how all but the birdy side of the
˙ entire line disappeared so completely. Hey,
˙ maybe it was space alien 'big game hunters' !
They fell through cracks in reality that the birds flew over?
I gather than most of the birds and rather a lot of mammals went exinct
too. A 10km asteroid will really mess a planet up.
But ALL the Dinos went out - SUCH a numerous/diverse
base. Big ones, medium ones, little ones ... ALL gone.
Reptiles survived. Amphibians survived. Mammals survived.
Crabs and octopi too.
So, what's up here ???
On Tue, 17 Mar 2026 03:18:35 -0400, c186282 wrote:
I kept buying Circuit Cellar mag until the very end.
What end?
https://circuitcellar.com/
I let my subscription lapse but should pick it up again. I had a big stack
of back issues and figured I'd get around to them when I retired. Most of
the stuff is history now, PIC vs. AVR and so forth.
On Wed, 18 Mar 2026 03:00:08 -0400, c186282 wrote:
Alas, 'the tech' has become much different now.
Steve always said his favorite programming language was 'solder'.
Today the tech is two or three levels more complex, all ICs. With the
ultra-shrinking of chips now Normal Humans can't even do-it-yourself.
3mm thru-hole is about the practical limit even for younger eyes and
hands (did a bunch of those, Dremel drill-press and micro-bits and
pointy irons).
Soldering the headers on boards like the Pico if I screw up and order the headerless version is about the limit of my soldering abilities any more. Even for that I use a magnifier. I never even tried surface mount.
On Wed, 18 Mar 2026 03:00:08 -0400, c186282 wrote:
Alas, 'the tech' has become much different now.
Steve always said his favorite programming language was 'solder'.
Today the tech is two or three levels more complex, all ICs. With the
ultra-shrinking of chips now Normal Humans can't even do-it-yourself.
3mm thru-hole is about the practical limit even for younger eyes and
hands (did a bunch of those, Dremel drill-press and micro-bits and
pointy irons).
Soldering the headers on boards like the Pico if I screw up and order the headerless version is about the limit of my soldering abilities any more. Even for that I use a magnifier. I never even tried surface mount.
On 18/03/2026 18:19, rbowman wrote:
On Wed, 18 Mar 2026 03:00:08 -0400, c186282 wrote:
˙˙˙ Alas, 'the tech' has become much different now.
˙˙˙ Steve always said his favorite programming language was 'solder'.
˙˙˙ Today the tech is two or three levels more complex, all ICs. With
the
˙˙˙ ultra-shrinking of chips now Normal Humans can't even do-it-
yourself.
˙˙˙ 3mm thru-hole is about the practical limit even for younger eyes and >>> ˙˙˙ hands (did a bunch of those, Dremel drill-press and micro-bits and
˙˙˙ pointy irons).
Soldering the headers on boards like the Pico if I screw up and order the
headerless version is about the limit of my soldering abilities any more.
Even for that I use a magnifier. I never even tried surface mount.
That's about where I stand too. 0.1" pitch I can just about˙ handle
Solder paste, solder balls and hot air is above my pay grade
On Wed, 18 Mar 2026 23:30:29 -0400, c186282 wrote:
My old employer ... betcha they still have all my corrosive stuff for
etching circuit boards in the box marked "toxic/hazardous" in the
back room somewhere .....
Ferrous oxide? Stuff is evil.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 117:51:41 |
| Calls: | 125 |
| Calls today: | 125 |
| Files: | 489 |
| D/L today: |
859 files (365M bytes) |
| Messages: | 76,472 |
| Posted today: | 26 |