OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000944OMNeT++command line toolspublic2016-02-04 12:002016-02-04 12:53
julius.f 
rhornig 
normaltrivialalways
resolvedfixed 
x86GNU/Linux?
 
5.0 
0000944: setenv script of 5.0b3 not posix compliant
Line 17 of setenv checks it the current platform is OSX:

if [ `uname` == "Darwin" ]; then

The problem here is that the "==" operator is not posix compliant and does not work on all Linux machines. Replacing it with the simple "=" operator solves this issue:

if [ `uname` = "Darwin" ]; then

see: http://stackoverflow.com/questions/25846454/bin-sh-odd-string-comparison-error-unexpected-operator [^]
No tags attached.
Issue History
2016-02-04 12:00julius.fNew Issue
2016-02-04 12:53rhornigNote Added: 0001161
2016-02-04 12:53rhornigStatusnew => resolved
2016-02-04 12:53rhornigFixed in Version => 5.0
2016-02-04 12:53rhornigResolutionopen => fixed
2016-02-04 12:53rhornigAssigned To => rhornig

Notes
(0001161)
rhornig   
2016-02-04 12:53   
right. thanks for reporting. Fixed in the main repo.