Release 3.1.98 bash script

 new new list compose Reply to this message Top page
Attachments:
+ (text/plain)

Delete this message
Author: Valerio Messina
Date:  
To: cygnal
Subject: Release 3.1.98 bash script
hi,
I just substituted the cygnal dll in a my app that start a bash script.
I got differences in output, so narrowed to the minimum the script.
Here the results.

Script named D:\installer\cygnal\tst.sh:

export Dir=`pwd`
echo "cwd:$Dir"
PATH="."
echo "PATH1=$PATH"
export PATH="$Dir/cygroot/bin:$PATH"
echo "---"
echo "$PATH"
echo "---"
echo "PATH2=$PATH"
echo "==="
echo "cwd:$Dir"
export APP_HOME="$Dir/.app"
echo "APP_HOME=$APP_HOME"


DLL and bash.exe are in ./cygroot/bin

This is the output from windows command.com:

D:\installer\cygnal>cygroot\bin\bash
bash.exe: warning: could not find /tmp, please create!
bash-4.4$ ./tst.sh
cwd:D:/installer/cygnal
PATH1=.
---
/cygroot/bin:.ygnal
---
/cygroot/bin:.ller/cygnal
===
cwd:D:/installer/cygnal
/.appOME=D:/installer/cygnal


Seems that variable strings are overwritten.


Note: I'm not subscribed to the list

--
Valerio

--
Valerio