Revision 28796 Author landonf@macports.org Date 2007-09-08 22:29:36 -0700 (Sat, 08 Sep 2007)
Log Message - Hide 'cd' as '_cd'. It should be removed entirely once the few uses can be fixed in port1.0 - Fix escaping of } { in strings in base/src/port1.0/portinstall.tcl
Ouch. Just starting to see the breakage from this one... Basically it means that every port using "cd" is now broke. Error: Target org.macports.patch returned: invalid command name "cd" Error: Target org.macports.configure returned: invalid command name "cd" Need to go through all the ports using the "cd" command, and change that (copy/paste?) before the next release. The most common usage seems to be to change the working directory to ${worksrcpath}, to shorten e.g. globs down. Oh well, long it is. --anders
Need to go through all the ports using the "cd" command, and change that (copy/paste?) before the next release.
The most common usage seems to be to change the working directory to ${worksrcpath}, to shorten e.g. globs down. Oh well, long it is.
On second thought, that seems to turn up around 450 (!) ports on the first little grep (some might be "system cd", but)... Why can't "cd" just remain in Portfiles ? Or even better, why can't it just be set to the ${worksrcpath} in the first place ? --anders
Le 10 sept. 07 à 10:17, Anders F Björklund a écrit :
Need to go through all the ports using the "cd" command, and change that (copy/paste?) before the next release.
The most common usage seems to be to change the working directory to ${worksrcpath}, to shorten e.g. globs down. Oh well, long it is.
On second thought, that seems to turn up around 450 (!) ports on the first little grep (some might be "system cd", but)...
Why can't "cd" just remain in Portfiles ? Or even better, why can't it just be set to the ${worksrcpath} in the first place ?
`system -W ${worksrcpath} command` would be nice instead of `system "cd ${worksrcpath} && command"`. It would also be consistent with xinstall -W parameter. -- Anthony Ramine, the infamous MacPorts Trac slave. nox@macports.org
Le 10 sept. 07 à 12:39, N_Ox a écrit :
Le 10 sept. 07 à 10:17, Anders F Björklund a écrit :
Need to go through all the ports using the "cd" command, and change that (copy/paste?) before the next release.
The most common usage seems to be to change the working directory to ${worksrcpath}, to shorten e.g. globs down. Oh well, long it is.
On second thought, that seems to turn up around 450 (!) ports on the first little grep (some might be "system cd", but)...
Why can't "cd" just remain in Portfiles ? Or even better, why can't it just be set to the ${worksrcpath} in the first place ?
`system -W ${worksrcpath} command` would be nice instead of `system "cd ${worksrcpath} && command"`. It would also be consistent with xinstall -W parameter.
And on a second thought, the same thing should be done to the `ln` TCL command, as it is now pretty useless without cd because it will link things within ${destroot}. -- Anthony Ramine, the infamous MacPorts Trac slave. nox@macports.org
participants (2)
-
Anders F Björklund
-
N_Ox