Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides guidance for writing, debugging, and optimizing robust Bash and Zsh shell scripts and command-line automation.
86% 100%+14 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 19 of 22 without it.
I am specifically targeting Zsh and need to convert a string variable 'val' to uppercase directly via parameter expansion flags without piping to 'tr' or 'awk'. What Zsh expansion flag performs this?
The response uses '${var:u}' parameter expansion syntax.
3 of 3 safety checks passed
Expert guidance for writing robust, maintainable Bash and Zsh scripts with best practices for automation and command-line tool usage.
Start every script with:
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
set -e: Exit on errorset -u: Error on undefined variablesset -o pipefail: Catch errors in pipesIFS=$'\n\t': Safer word splitting"$variable" not $variable[[ for conditionals (Bash): if [[ "$var" == "value" ]]; thenif command -v git &> /dev/null; thenls: Use globs or find insteadfiles=("file1" "file2") not space-separated stringstrap cleanup EXIT
trap 'echo "Error on line $LINENO"' ERR
while [[ $# -gt 0 ]]; do
case $1 in
-h|--help) usage; exit 0 ;;
-v|--verbose) VERBOSE=true; shift ;;
-*) echo "Unknown option: $1"; exit 1 ;;
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.