[go: up one dir, main page]

20 Apr 23

rc is a Unix shell I’ve been working on over the past couple of weeks, though it’s been in the design stages for a while longer than that. It’s not done or ready for general use yet, but it is interesting, so let’s talk about it.

by rizo 2 years ago saved 2 times

19 Apr 23

rc is a Unix shell I’ve been working on over the past couple of weeks, though it’s been in the design stages for a while longer than that. It’s not done or ready for general use yet, but it is interesting, so let’s talk about it.

by eli 2 years ago saved 2 times

30 Mar 23

“execline is a (non-interactive) scripting language, like sh - but its syntax is quite different from a traditional shell syntax.”

How do people feel about this compared to rc from Plan 9?

by 2097 2 years ago
Tags:

27 Oct 22

#!/usr/bin/env bash

set -o errexit set -o nounset set -o pipefail if [[ “${TRACE-0}” == “1” ]]; then

set -o xtrace

fi

if [[ “${1-}” =~ ^-*h(elp)?$ ]]; then

echo 'Usage: ./script.sh arg-one arg-two

This is an awesome bash script to make your life better.

exit

fi

cd “$(dirname “$0”)”

main() {

echo do awesome stuff

}

main “$@”

by eli 3 years ago saved 4 times

This article is about a few quick thumb rules I use when writing shell scripts that I’ve come to appreciate over the years. Very opinionated.

by lamnatos 3 years ago saved 4 times

11 Jan 22

Process substitution is a great little feature and it feels very Unixy, but it took a surprisingly long time to appear in Unix and in shells. This is because it needed a crucial innovation, namely names in the filesystem for file descriptors, names that you can open() to be connected to the file descriptor.

by mlb 4 years ago