at least it doesn't work the same as on windows and linux. to add a path from extra directory, on windows and linux it works like this:
[declare -stdpath ../extra/<somedir>]
however, on OS X this doesn't work. although i asked the list several times, it seems that noone has ever managed to add a path using '-stdpath' on OS X.