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.)  Students interested in this topic are encouraged to discuss it with developers on IRC or email (IRC is preferred.)
+
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.)
  
=References=
+
Requirements:
  
* src/librt/search.c
+
*Familiarity with C
* src/libged/search.c
 
* src/mged/setup.c
 
  
=Requirements=
+
Difficulty:  low to medium (depending on level of understanding of BRL-CAD's libraries)
 
 
*Familiarity with C
 

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)