Bug #997

x2sys doesn't handle relative paths

Added by Sam 8 months ago. Updated 7 months ago.

Status:ClosedStart date:2016-11-08
Priority:LowDue date:
Assignee:Paul% Done:

100%

Category:-
Target version:Candidate for next bugfix release
Affected version:5.3.1 Platform:

Description

Hi there!

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
#nrl_xovers
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

Associated revisions

Revision 17341
Added by Paul 8 months ago

Address issue #997

History

#1 Updated by Paul 8 months 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.

#2 Updated by Joaquim 7 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF