-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
Right now shpec is alias
which shpec
shpec: aliased to zsh -c 'disable -r end; . /full/path/to/shpec'- this prevents to pass arguments to shpec
shpec -v,shpec fileis not working - this drop the current zsh environment with all defined functions
I offer to use function instead of alias.
We may guard execution with ()
(disable -r time;which time); which time
/usr/bin/time
time: shell reserved wordIt maybe something like
__shpec_location="$(dirname $0:A)/bin/shpec"
shpec() { (disable -r end; . $__shpec_location $@) }There is a problem with multiple arguments, but this is different issue.