x2sys doesn't handle relative paths
|Target version:||Candidate for next bugfix release|
It seems the X2SYS package can't handle relative paths for track files, e.g.:
sam@leavenworth:~/phd/gravity/airborne/nrl$ gmt x2sys_binlist ./grv_a92/s_cFfaa173_2_LR_a92.trk -Tnrl_xovers -V
x2sys_binlist: Reading file x2sys_binlist: x2sys_read_file : Cannot find track
(null): Error from fclose
The command executes fine with the full path specified. I've tested on 5.3.1 on Linux and 5.2.1 on OS X.
Not a massive issue obviously, but would be nice
#1 Updated by Paul over 4 years ago
- Status changed from New to Resolved
- Assignee set to Paul
- Target version set to Candidate for next bugfix release
- % Done changed from 0 to 100
The leading ./ tricked the algorithm that was looking for file extensions and resulted in NULL file names.... I have fixed this in r17342. As a workaround, just remove the leading ./ part which does not add any information anyway.