Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

<lilo> I've always wanted to have a web site with a big picture of a carrot on it


computers / rocksolid.shared.linux / Re: https://www.shellcheck.net/

SubjectAuthor
* https://www.shellcheck.net/anon
`* https://www.shellcheck.net/anon
 `- https://www.shellcheck.net/anon

1
https://www.shellcheck.net/

<a9bd0060b7409bd941ae71ea0b9d545f@def4.com>

 copy mid   Newsgroups: rocksolid.shared.linux
Path: rocksolid2!def3!.POSTED.localhost!not-for-mail
From: ano...@anon.com (anon)
Newsgroups: rocksolid.shared.linux
Message-ID: <a9bd0060b7409bd941ae71ea0b9d545f@def4.com>
Subject: https://www.shellcheck.net/
Date: Sat, 14 Jul 2018 12:36:57+0000
Organization: def4
Lines:
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Sat, 14 Jul 2018 12:36 UTC

holy shit, this site is worth its weight in gold for every bash script author.
just put my scripts through there and it detected only one fault in main (although it works in the script), but a buckload of faults in index. more cleaning up....but the site is really phenomenal.

Posted on def4.i2p

Re: https://www.shellcheck.net/

<15a8c933e9845ce04faf190151109ea3@def4.com>

 copy mid   Newsgroups: rocksolid.shared.linux
Path: rocksolid2!def3!.POSTED.localhost!not-for-mail
From: ano...@anon.com (anon)
Newsgroups: rocksolid.shared.linux
Message-ID: <15a8c933e9845ce04faf190151109ea3@def4.com>
Subject: Re: https://www.shellcheck.net/
Date: Sat, 14 Jul 2018 12:58:17+0000
Organization: def4
In-Reply-To: <a9bd0060b7409bd941ae71ea0b9d545f@def4.com>
References: <a9bd0060b7409bd941ae71ea0b9d545f@def4.com>
Lines:
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Sat, 14 Jul 2018 12:58 UTC

and after cleaning up the one fault i get now 164 lines worth of comments on all kind of shit.
never knew there were so many ways to go wrong on bash scripting.
so, another major code cleanup...

Posted on def4.i2p

Re: https://www.shellcheck.net/

<984d4868be8f2d522926eb6a97db8b06@def4.com>

 copy mid   Newsgroups: rocksolid.shared.linux
Path: rocksolid2!def3!.POSTED.localhost!not-for-mail
From: ano...@anon.com (anon)
Newsgroups: rocksolid.shared.linux
Message-ID: <984d4868be8f2d522926eb6a97db8b06@def4.com>
Subject: Re: https://www.shellcheck.net/
Date: Sat, 14 Jul 2018 17:37:34+0000
Organization: def4
In-Reply-To: <15a8c933e9845ce04faf190151109ea3@def4.com>
References: <15a8c933e9845ce04faf190151109ea3@def4.com>
Lines:
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Sat, 14 Jul 2018 17:37 UTC

why set -e is not always a good idea:

From here: http://mywiki.wooledge.org/BashFAQ/105

Once upon a time, a man with a dirty lab coat and long, uncombed hair
showed up at the town police station, demanding to see the chief of
police. "I've done it!" he exclaimed. "I've built the perfect
criminal-catching robot!"

The police chief was skeptical, but decided that it might be worth
the time to see what the man had invented. Also, he secretly thought,
it might be a somewhat unwise move to completely alienate the mad
scientist and his army of hunter robots.

So, the man explained to the police chief how his invention could tell
the difference between a criminal and law-abiding citizen using a
series of heuristics. "It's especially good at spotting recently
escaped prisoners!" he said. "Guaranteed non-lethal restraints!"

Frowning and increasingly skeptical, the police chief nevertheless
allowed the man to demonstrate one robot for a week. They decided that
the robot should patrol around the jail. Sure enough, there was a
jailbreak a few days later, and an inmate digging up through the
ground outside of the prison facility was grabbed by the robot and
carried back inside the prison.

The surprised police chief allowed the robot to patrol a wider area.
The next day, the chief received an angry call from the zookeeper.
It seems the robot had cut through the bars of one of the animal cages,
grabbed the animal, and delivered it to the prison.

The chief confronted the robot's inventor, who asked what animal it
was. "A zebra," replied the police chief. The man slapped his head and
exclaimed, "Curses! It was fooled by the black and white stripes!
I shall have to recalibrate!" And so the man set about rewriting the
robot's code. Black and white stripes would indicate an escaped
inmate UNLESS the inmate had more than two legs. Then it should be
left alone.

The robot was redeployed with the updated code, and seemed to be
operating well enough for a few days. Then on Saturday, a mob of
children in soccer clothing, followed by their parents, descended
on the police station. After the chaos subsided, the chief was told
that the robot had absconded with the referee right in the middle of
a soccer game.

Scowling, the chief reported this to the scientist, who performed a
second calibration. Black and white stripes would indicate an escaped
inmate UNLESS the inmate had more than two legs OR had a whistle on
a necklace.

Despite the second calibration, the police chief declared that the robot
would no longer be allowed to operate in his town. However, the news
of the robot had spread, and requests from many larger cities were
pouring in. The inventor made dozens more robots, and shipped them off
to eager police stations around the nation. Every time a robot grabbed
something that wasn't an escaped inmate, the scientist was consulted,
and the robot was recalibrated.

Unfortunately, the inventor was just one man, and he didn't have the
time or the resources to recalibrate EVERY robot whenever one of them
went awry. The robot in Shangri-La was recalibrated not to grab a
grave-digger working on a cold winter night while wearing a ski mask,
and the robot in Xanadu was recalibrated not to capture a black and
white television set that showed a movie about a prison break, and so
on. But the robot in Xanadu would still grab grave-diggers with ski
masks (which it turns out was not common due to Xanadu's warmer climate),
and the robot in Shangri-La was still a menace to old televisions (of
which there were very few, the people of Shangri-La being on the average
more wealthy than those of Xanadu).

So, after a few years, there were different revisions of the
criminal-catching robot in most of the major cities. In some places,
a clever criminal could avoid capture by wearing a whistle on a string
around the neck. In others, one would be well-advised not to wear orange
clothing in certain rural areas, no matter how close to the Harvest
Festival it was, unless one also wore the traditional black triangular
eye-paint of the Pumpkin

Posted on def4.i2p

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor