Tag bash
Why is set -eu
not working? (2 mins read).
Why you may be finding set -u
in a shell script not exiting when set -e
is also present.
Post details
Post details
I've recently been doing similar with some of my utilities, albeit with an informal comparison between Ruby and Go versions, but would agree that for large, production critical scrips, this is a great way to do it
Post details
The Bash logo was one of my proudest non-code open source contributions. So cool to see it on popular videos and articles. ๐
Justin Dorfman (@jdorfman)Sun, 27 Feb 2022 01:43 GMT
Post details
The hardest problem in computer science is escaping a quotation mark in a bash string.
Lorin Hochstein (@norootcause)Mon, 17 May 2021 15:32 +0000
Post details
TIL that you can use the "DEBUG" trap to step through a bash script line by line
๐Julia Evans๐ (@b0rk)Sat, 03 Oct 2020 15:24 +0000
Post details
Surrounding a bash command with () will not persist directory changes So instead of cd ios && pod install && cd .. You can do: (cd ios && pod install) Pretty neat!Kadi Kraman (@kadikraman)Sat, 04 Apr 2020 14:59 +0000
I used to write a lot of shell scripts before realising that what I was trying to do was treat shell scripting as a "full" scripting language (I won't define here what I mean by "full").
Its not - reach for a higher level scripting language like Ruby or Python when things are getting more complicated, and allow shell scripts to glue things together, or be for quick tasks maybe a few lines long.
When you do write them, this advice is great but it's definitely worth gaining understanding of when you should and shouldn't use them.
Automating Promotion of Jekyll Posts from Draft to Post (2 mins read).
The handy script I've created to automate publishing a draft in Jekyll, with handy Zsh + Bash autocomplete.
DevOpsDays London 2018 (51 mins read).
My writeup of my first DevOpsDays conference, and the awesome talks and conversations I was part of.
Extracting SSL/TLS Certificate Chains Using OpenSSL (1 mins read).
A quick one-liner to get you the full certificate chain in .pem
format.
You're currently viewing page 1 of 1, of 21 posts.