I would like to get a test with a cleaner, less ugly single-line layer:
#!/bin/bash test -d "$1" || (echo "Argument 1: '$1' is not a directory" 1>&2 ; exit 1) || exit 1
Basically, I am for something that does not duplicate exit , and, preferably, does not generate a sub-shell (and, as a result, also looks less ugly), but it fits into one line anyway.
bash
hyde
source share