Is there a tool to check bash scripts errors without executing them?

|
Night_H4nter 2022-08-03 22:34:39
i’ve heard some vulns don’t get a cve assigned
Night_H4nter 2022-08-03 22:34:55
they just get fixed quickly enough for example
qontinuum 2022-08-03 22:34:58
Night_H4nter 2022-08-03 22:34:39
i’ve heard some vulns don’t get a cve assigned

That’s another thing but yeah

Night_H4nter 2022-08-03 22:35:06
also
Glats 2022-08-03 22:35:08
https://twitter.com/UnixToolTip/status/1554912837037867010

Twitter
One way to use the same Emacs config file across platforms:

(cond
((string-equal system-type “windows-nt”) ; Windows

)

((string-equal system-type “gnu/linux”) ; linux

)

((string-equal system-type “darwin”) ; Mac

)
)

Night_H4nter 2022-08-03 22:35:09
s6 has no cves
Night_H4nter 2022-08-03 22:35:36
qontinuum 2022-08-03 22:32:43
I really don’t get what you want to be honest xD

you’re just dumb baguette man

Night_H4nter 2022-08-03 22:35:45
nvm
grakata_clem 2022-08-03 22:36:19
Night_H4nter 2022-08-03 22:35:36
you’re just dumb baguette man

Snail eater

Night_H4nter 2022-08-03 22:38:05
his name is baguette man
Night_H4nter 2022-08-03 22:38:09
anyways
Glats 2022-08-03 22:38:11
systemd could be a good project. but it was bad executed
Night_H4nter 2022-08-03 22:38:15
as i said, no reasonable answer
Night_H4nter 2022-08-03 22:38:23
as always
Glats 2022-08-03 22:38:30
systemd dude is just to satisfy redhat requirements
Glats 2022-08-03 22:39:07
and projects adopted because it was an “enterprise software solution”
Marc 2022-08-03 22:39:28
qontinuum 2022-08-03 22:34:32
Shellcheck

tnx!

Night_H4nter 2022-08-03 22:39:51
he’s s genius in terms of ideas, especially for enterprise space
Night_H4nter 2022-08-03 22:40:10
but execution is… well, even i, being not a dev at all, am not a big fan of
Marc 2022-08-03 22:40:24
Glats 2022-08-03 22:38:30
systemd dude is just to satisfy redhat requirements

now microsoft

grakata_clem 2022-08-03 22:40:29
Glats 2022-08-03 22:38:11
systemd could be a good project. but it was bad executed

Because Poettering and Sievers are jerks

Night_H4nter 2022-08-03 22:40:48
Marc 2022-08-03 22:40:24
now microsoft

makes sense

Night_H4nter 2022-08-03 22:41:26
ms needs to get its shit together
grakata_clem 2022-08-03 22:41:27
I remember Poettering getting Pwnie award for the worst interaction with community
Night_H4nter 2022-08-03 22:41:40
cuz it becomes annoying to work with
grakata_clem 2022-08-03 22:42:08
In one of the updates he turned some of journal logs text dark blue, because he wanted to “hide unimportant information”, as he said
capezotte 2022-08-03 22:42:18
Marc 2022-08-03 22:33:12
is there a tool to check bash scripts errors without executing them ?

shellcheck can catch obvious typos and portability gotchas but that’s about it

Glats 2022-08-03 22:42:28
eitherway I’m kind of spectating about new skarnet project
Night_H4nter 2022-08-03 22:42:28
grakata_clem 2022-08-03 22:41:27
I remember Poettering getting Pwnie award for the worst interaction with community

pwnie is given for the nominee’s attitude towards security iirc

grakata_clem 2022-08-03 22:42:56
Night_H4nter 2022-08-03 22:42:28
pwnie is given for the nominee’s attitude towards security iirc

Well, I don’t remember it exactly, just remember the case

Glats 2022-08-03 22:43:03
grakata_clem 2022-08-03 22:41:27
I remember Poettering getting Pwnie award for the worst interaction with community

lol. I remembered the “debug” impasse

Night_H4nter 2022-08-03 22:43:03
Glats 2022-08-03 22:42:28
eitherway I’m kind of spectating about new skarnet project

that’s gonna be interesting, yes

grakata_clem 2022-08-03 22:46:17
God, I like the damn chroot. Got some problems with one program and was about to reinstall my system from musl to glibc when remembered about chroot
grakata_clem 2022-08-03 22:46:27
Saved me hours of time
R. V. 2022-08-03 22:51:08
Marc 2022-08-03 22:33:12
is there a tool to check bash scripts errors without executing them ?

Replace dangerous parts with /bin/true and /bin/false and see if it’s working as expected

|