Editing Add exec option to search
From BRL-CAD
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 9: | Line 9: | ||
(Note: quoting of options in the above examples is not what is required for the MGED tcl prompt, but has been simplified for clarity - an enhancement to MGED that would make using search easier would be a setting that checks which command is being run before applying Tcl globbing logic. This would allow search to recive the above commands "as is" while still allowing 'ls *' to work as expected, although that should be user configurable because some users would type a search command expecting Tcl globbing to work.) | (Note: quoting of options in the above examples is not what is required for the MGED tcl prompt, but has been simplified for clarity - an enhancement to MGED that would make using search easier would be a setting that checks which command is being run before applying Tcl globbing logic. This would allow search to recive the above commands "as is" while still allowing 'ls *' to work as expected, although that should be user configurable because some users would type a search command expecting Tcl globbing to work.) | ||
− | Adding the exec option to the search command will require changes not only to search but to how command tables are structured in BRL-CAD - currently tables mapping commands to function calls are present in MGED, and they would need to live at a lower level in order to allow exec to find and run them (search is a library function and as such cannot know anything about MGED). A student proposal would identify the needed changes to both search and BRL-CAD's tools and libraries (they could be more extensive than one might expect - remember the goal is to do it "the right way", not just a way that works | + | Adding the exec option to the search command will require changes not only to search but to how command tables are structured in BRL-CAD - currently tables mapping commands to function calls are present in MGED, and they would need to live at a lower level in order to allow exec to find and run them (search is a library function and as such cannot know anything about MGED). A student proposal would identify the needed changes to both search and BRL-CAD's tools and libraries (they could be more extensive than one might expect - remember the goal is to do it "the right way", not just a way that works.) |
− | + | Requirements: | |
− | * | + | *Familiarity with C |
− | |||
− | |||
− | + | Difficulty: low to medium (depending on level of understanding of BRL-CAD's libraries) | |
− | |||
− |