[MacPorts] #14458: port lint should issue error if port uses deprecated "exit" or "cd" commands

MacPorts trac at macosforge.org
Sat Feb 23 17:43:33 PST 2008


#14458: port lint should issue error if port uses deprecated "exit" or "cd"
commands
--------------------------------------+-------------------------------------
  Reporter:  ryandesign at macports.org  |       Owner:  macports-tickets at lists.macosforge.org
      Type:  enhancement              |      Status:  new                                  
  Priority:  Normal                   |   Milestone:  MacPorts base enhancements           
 Component:  base                     |     Version:  1.6.0                                
Resolution:                           |    Keywords:                                       
--------------------------------------+-------------------------------------
Comment (by raimue at macports.org):

 Not that easy to implement, I think. It would require to check full Tcl
 syntax.
 For example:
 {{{
 set cd foo   # valid
 set [cd foo] # invalid
 cd foo       # invalid
 set exit 1   # valid
 exit 1       # invalid
 do; exit 1   # invalid
 do && exit 1 # invalid
 }}}

 But this can also be complexer, as you can create variable functions:
 {{{
 set foo exit
 $foo 1       # is now equivalent to `exit 1'
 }}}

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14458#comment:1>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list