There is still a bit of work to be done on this...
THe run command, etc.
Should resolve issue #63 and possibly issue #14.
Hi. I understand the complexities behind having a MinGW script for nodist, especially when it comes to nodist use|env needing to set the NODIST_VERSION env variable. I've come up with a workaround for my installation that I thought I'd share, in case it's useful to someone.
These scripts assume that the path to nodist is in $PATH
First, I edited my ~/.bashrc file and added:
alias nodist='source ~/bin/nodistproxy'
The code for ~/bin/nodistproxy is:
if [ "$1" = "env" -o "$1" = "use" ]; then
# Ported from nodist.cmd:
# call %0 + %2
# if ERRORLEVEL 0 (
# :: get version and set NODIST_VERSION
# FOR /F "tokens=1 delims=" %%A in ('"%0" add %2') do @set "NODIST_VERSION=%%A"
\nodist + $2
if [ $? -eq 0 ]; then
export NODIST_VERSION=`\\nodist add $2`
I didn't particularly need to run selfupdate/update from Git Bash, so I didn't add it here. However, it should be pretty easy to add the necessary conditions to nodistproxy for selfupdate/update. Hope this helps.
@gmahomarf Awesome! I'll definitely integrate this. Thank you for this contribution!
@marcelklehr Great! Let me know if there's anything I can do to help.
Fix #14,#126: Finally a working bash script