[MacPorts] FAQ modified

MacPorts noreply at macports.org
Mon Feb 18 02:31:25 PST 2013


Page "FAQ" was changed by larryv at macports.org
Diff URL: <https://trac.macports.org/wiki/FAQ?action=diff&version=126>
Revision 126
Comment: use the -W flag to change dirs with system
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: FAQ
=========================================================================
--- FAQ (version: 125)
+++ FAQ (version: 126)
@@ -260,7 +260,7 @@
 
 The `cd` command was removed from trunk in r28796. As of release 1.7.0 it is no longer available for use in Portfiles. `cd` is harmful as it changes the current directory of the whole process and not only of the current Tcl interpreter. Also, it becomes unreliable when used inside phases and other phases begin to rely on it.
 
-Please use absolute paths instead, starting with ${worksrcpath}. If you need to run a command with `system`, use it like `system "cd ${worksrcpath} && autoreconf"`.
+Please use absolute paths instead, starting with ${worksrcpath}. If you need to run a command with `system`, use it like `system -W ${worksrcpath} "autoreconf"`.
 
 === What is the process for becoming a committer? === #committer
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/FAQ>
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone added your email address to be
notified of changes on 'FAQ' page.
If it was not you, please report to .


More information about the macports-changes mailing list