NetLogo/NetLogo — Issue #43: Linux: shell script to run app can't be run from a symlink
Author: SethTisue
Created: 2011-12-15 02:35:43+00:00
State: open

the problem line is:

```
cd "`dirname "$0"`"
```

it's there to ensure that when NetLogo starts, the NetLogo installation directory is the current working directory, since the app expects that. but if there's a symlink to the script, `$0` points to the symlink, rather than to the target, so we end up in the wrong directory

reported by Fred Drueck