#!/bin/bash # newquota--A frontend to quota that works with full-word flags a la GNU # quota has three possible flags, -g, -v, and -q, but this script # allows them to be '--group', '--verbose', and '--quiet' too: setglobal flags = ''"" setglobal realquota = $[which quota] while [ $# -gt 0 ] { match $1 { with --help echo "Usage: $0 [--group --verbose --quiet -gvq]" > !2 exit 1 with --group setglobal flags = ""$flags -g""; shift with --verbose setglobal flags = ""$flags -v""; shift with --quiet setglobal flags = ""$flags -q""; shift with -- shift; break with * break; # done with 'while' loop! } } exec $realquota $flags @Argv