Giving a nudge here. I've tried the below process with both
OpenBSD's stock ksh and FreeBSD's stock /bin/sh as my shell and both
seem to have similar errors (the FreeBSD error is less precise about
the line location or the actual error:
/home/tim/.local/bin/virtualenvwrapper.sh: ${}: Bad subs
Under a new user account with ksh (the default) as the shell I issued
the following:
$ pip3 install --user virtualenvwrapper
Successfully installed pbr-3.1.1 six-1.11.0 stevedore-1.28.0
virtualenv-clone-0.2.6 virtualenvwrapper-4.8.2
$ export WORKON_HOME=~/code/virtualenvs
$ mkdir -p $WORK