View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004700 | Dwarf Fortress | Technical -- General | public | 2011-06-14 11:27 | 2011-06-14 12:51 |
Reporter | freezervv | Assigned To | |||
Priority | low | Severity | trivial | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Linux | OS | Ubuntu | OS Version | 10.04 |
Product Version | 0.31.21 | ||||
Summary | 0004700: Init script handles symlinks poorly | ||||
Description | The current method of getting the directory... DF_DIR=$(dirname "$0") ... doesn't handle symlinks well, as they're hidden by the shell. Suggest changing the line to a link-aware method, e.g. ... DF_DIR=$(pwd -P) ... which appears to solve the problem more elegantly. | ||||
Steps To Reproduce | Create a symlink to the "df" script, e.g. ... 1) cd /usr/bin 2) ln -s {path to df}/df dwarffortress ... then try to run it. 3) dwarffortress | ||||
Tags | No tags attached. | ||||