Update 2026-01-25 09:38 OpenBSD/amd64-t14
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# #!/bin/sh
|
||||
# #!/bin/bash
|
||||
snippet #!
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
snippet if
|
||||
if [[ ${1:condition} ]]; then
|
||||
@@ -26,14 +26,3 @@ snippet case
|
||||
${2:pattern})
|
||||
${3};;
|
||||
esac
|
||||
snippet getopt
|
||||
while getopts ao: name
|
||||
do
|
||||
case $name in
|
||||
a) flag=1 ;;
|
||||
o) oarg=$OPTARG ;;
|
||||
?) echo "Usage: ..."; exit 2 ;;
|
||||
esac
|
||||
done
|
||||
shift $(($OPTIND - 1))
|
||||
echo "Non-option arguments: " "$@"
|
||||
|
||||
Reference in New Issue
Block a user