1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-14 08:29:03 -08:00
rc/sh/clash

15 lines
381 B
Text
Raw Normal View History

2024-07-01 22:11:33 -07:00
#!/usr/bin/env sh
# YES_ZSH YES_BASH YES_DASH YES_ASH
clash() { ### @- run a command through 9 different shells.
### only returns false when no arguments are given.
[ $# != 0 ] || return
for sh in ash bash dash ksh mksh osh posh yash zsh; do
printf '\033[7m %s \033[m\n' "trying $sh"
"$sh" "$@"
done
true
}
[ -n "${preload+-}" ] || clash "$@"