1
0
mirror of https://github.com/helix-editor/helix synced 2026-07-26 23:00:55 +02:00
Files
helix/tests/indent/bash.sh
2026-06-20 14:42:38 +09:00

32 lines
355 B
Bash

#!/usr/bin/env bash
greet() {
local name="$1"
echo "hello, $name"
}
if [ -d "$HOME" ]; then
echo "home exists"
elif [ -f /etc/passwd ]; then
echo "passwd"
else
echo "neither"
fi
for f in a b c; do
echo "$f"
done
while read -r line; do
echo "$line"
done
case "$1" in
start)
echo "starting"
;;
*)
echo "usage"
;;
esac