#26034: qt4-mac fails on Tiger: find: 1: unknown expression primary -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac -------------------------------------+-------------------------------------- Comment(by michaelld@…): This works for me: {{{ foreach full_framework [glob -type d -directory ${destroot_qt}/lib \ *.framework] { regexp {[^ ]*/(.+)\.framework.*} ${full_framework} match framework }}} and then 'framework' holds the desired value. In this case, because I know that qt4-mac is a framework install, I can also do: {{{ foreach framework [exec ls ${destroot_qt}/lib | \ grep framework | \ sed -e "s@\\.framework.*@@"] { }}} which is, overall, about as simple (or complex) as the combined 'glob' and 'regexp'. If the 'ls' command allowed me to specify '*.framework' then I'd do that to remove the 'grep' -- /bin/ls does allow me to do this. If I do "exec ls ${destroot_qt}/lib/*.framework" instead of the above, then I get back "ls: ${destroot_qt}/lib/*.framework: No such file or directory" ... while from 'bash' I get the listing I want. Anyway, do you have a preference as to which of the above I use? -- Ticket URL: <http://trac.macports.org/ticket/26034#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS