[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

virtualenvwrapper under OpenBSD's ksh & FreeBSD's /bin/sh

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 substitution

but I suspect it's the same).

Is there a way to get `pip install --user virtualenvwrapper` to pull
in a version that supports either ksh or traditional /bin/sh instead
of being yoked to bash/zsh?  Based on that bitbucket.org/dhellmann
link, it sounds like it should at least support ksh.



On 2018-02-02 13:10, Tim Chase wrote:
> 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 $WORKON_HOME
> Good so far.  Based on
>   https://bitbucket.org/dhellmann/virtualenvwrapper-hg
> it sounds like ksh should be supported.  However when I try to
> enable it, I get:
>   $ . ~/.local/bin/virtualenvwrapper.sh
>   ksh: /home/tim/.local/bin/virtualenvwrapper.sh[97]: ${.sh.file}":
> bad substitution
> The line in question reads
>   virtualenvwrapper.sh: export
> though it's not present in the latest tip version of the source.  I
> tried pulling in that one virtualenvwrapper.sh file from the tip to
> see if that would remedy the issue but it complains
>   $ . ~/tmp/virtualenvwrapper.sh
>   ksh: /home/tim/tmp/virtualenvwrapper.sh[247]: syntax error: `('
> unexpected
> on this line
>  COMPREPLY=( $(compgen -W "`virtualenvwrapper_show_workon_options`"
> -- ${cur}) )
> Is there something I'm missing or need to do to get pip (pip3.6) to
> pull in a working version of virtualenvwrapper for ksh?
> Thanks,
> -tkc
> -- 
> https://mail.python.org/mailman/listinfo/python-list