1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-06 09:41:07 +01:00

zsh-workers/7891

This commit is contained in:
Tanaka Akira 1999-09-17 03:02:18 +00:00
parent 2f9472e08b
commit 986956a7ca

View file

@ -152,6 +152,11 @@ compdef() {
# Get the options.
if [[ $#* -eq 0 ]]; then
echo "compdef needs parameters"
return 1
fi
while getopts "anpPkd" opt; do
case "$opt" in
a) autol=yes;;
@ -175,6 +180,11 @@ compdef() {
done
shift OPTIND-1
if [[ $#* -eq 0 ]]; then
echo "compdef needs parameters"
return 1
fi
if [[ -z "$delete" ]]; then
# Adding definitions, first get the name of the function name
# and probably do autoloading.