miniblog.
← Back to all posts
Oct 17, 2014 at 18:53
Used variable variables in bash today. Didn't feel as dirty as I expected!
Wilfred Hughes
Related Posts
Apr 5, 2022 at 07:31
Bash's list of behaviours that aren't POSIX-compliant is longer than I expected:
https://www.gnu.org/software/bash/manual/html_node/Bash-POSIX-Mode.html
I used fish for a while and liked it, but POSIX-ish shells work with everything. These days I use a heavily customised zsh.
Bash POSIX Mode (Bash Reference Manual)
Bash POSIX Mode (Bash Reference Manual)
Wilfred Hughes
Shared words: bash, Used, expected Score: 61.6
Dec 4, 2013 at 11:53
Learnt about `set -u` in bash scripts today. Ensures all your variables are defined, very handy (think `"use strict";` for shell)
Wilfred Hughes
Shared words: bash, variable, today Score: 56.6
Oct 2, 2018 at 05:41
I really like Clojure's let syntax. It works well when you only have a single variable. In other lisps, this feels a little verbose: (let ((my-var (foo))) (bar foo)) I've seen a let1 macro used in books, but not in the wild.
Wilfred Hughes
Shared words: Used, variable, feel Score: 37.4