Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PWS :reload
- X-seq: zsh-users 8824
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: PWS :reload
- Date: Thu, 12 May 2005 17:05:51 +0000
- In-reply-to: <dbv6815oor3bc2a9cjpea2n16tkoudcor2@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <lph681tkqplffuk8fh6vrope91gbb053mf@xxxxxxx> <21433.1115902923@xxxxxxx> <h8o681t5vaee6101u5u59tcn9slujg2j5n@xxxxxxx> <david@xxxxxxxxxx> <11870.1115909308@xxxxxxx> <dbv6815oor3bc2a9cjpea2n16tkoudcor2@xxxxxxx>
On May 12, 5:00pm, zzapper wrote:
}
} >reload() {
} >while (( $# )); do
} > unfunction $1 2>/dev/null
} > autoload $1
} > shift
} >done
} >}
} >
} Can I have a warning that the function wasn't already loaded?
We're venturing into the realm of "you should be able to do this yourself."
E.g., just take out the 2>/dev/null
Or:
reload() {
while (( $# )); do
unfunction $1 2>/dev/null || print -u2 "$1 loading for the first time"
autoload $1
shift
done
Or whatever ...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author