#190 mged idents command on Windows

open
nobody
5
2008-11-13
2008-11-13
Lee Butler
No

running idents seemd to have changed.

start with a new geometry file.

mged> in box rpp 0 1 0 1 0 1
mged> r box.r u box
mged> in ball sph 0 0 0 1
mged> r ball.r u ball
mged> g all box.r ball.r
mged> idents idents.txt all

On 7.10.4 under linux I get:
1 -8 Summary Table {idents} (written: Thu Nov 13 14:39:30 2008)
2 -7 file name : simple.g
3 -6
4 -5
5 -4 user : Lbutler
6 -3 target title : Untitled BRL-CAD Database
7 -2 target units : mm
8 -1 objects : all

1 1001 0 1 100 /all/ball.r:
2 1000 0 1 100 /all/box.r:
* 9999999
* 9999999
* 9999999
* 9999999
* 9999999
1 -8 Summary Table {idents} (written: Thu Nov 13 14:39:30 2008)
2 -7 file name : simple.g
3 -6
4 -5
5 -4 user : Lbutler
6 -3 target title : Untitled BRL-CAD Database
7 -2 target units : mm
8 -1 objects : all

2 1000 0 1 100 /all/box.r:
1 1001 0 1 100 /all/ball.r:
* 9999999
* 9999999
* 9999999
* 9999999
* 9999999

Whereas running under Windows with 7.13.0 produced:
mged> idents idents.txt all
1 -8 Summary Table {idents} (written: Thu Nov 13 14:27:59 2008)
2 -7 file name : N:/simple.g
3 -6
4 -5
5 -4 user : Lbutler
6 -3 target title : Untitled BRL-CAD Database
7 -2 target units : mm
8 -1 objects : box.r ball.r

1 1000 0 1 100 /box.r:
2 1001 0 1 100 /ball.r:
* 9999999
* 9999999
* 9999999
* 9999999
* 9999999

Running idents prints information about running "sort" and "cat" which don't exist on Windows. That is most likely the problem.

Discussion

  • Sean Morrison
    Sean Morrison
    2008-11-13

    It's a wonder that it works at all on Windows. There's a lot of unixisms in the 'idents' command. There are similar issues with the 'solids' and 'regions' commands because they all run through f_tables(). Manually creates temporary files in /tmp, relies on cat and sort for some bizarre reason, and hasn't changed in years. Probably only works for Bob because of cygwin.