- Status Closed
- Percent Complete
- Task Type Bug Report
- Category QCAD (main)
-
Assigned To
Andrew - Operating System Linux (All / Other)
- Severity Low
- Priority Very Low
- Reported Version 3.19.2
- Due in Version Undecided
-
Due Date
Undecided
-
Votes
1
- Timofey V. Chernyshev (16.02.2018)
- Private
Attached to Project: QCAD Bugtracker
Opened by Timofey V. Chernyshev - 13.02.2018
Last edited by Andrew - 22.03.2018
Opened by Timofey V. Chernyshev - 13.02.2018
Last edited by Andrew - 22.03.2018
FS#1717 - small fix in startup script
The current startup script fails when called through symbolic link due to string:
DIR=${0%/*}
It is better to change it to:
DIR=$(dirname -- $(readlink -f -- $0))
readlink has other problems (non-standard, see http://mywiki.wooledge.org/BashFAQ/028)
Using PWD would very likely break existing use cases.
For now, we're moving to BASH_SOURCE which is also not perfect but seems to cover most use cases and assures backwards compatibility.
Feel free to comment..