Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why was the cd command removed?

CD Command removed
0
Posted

Why was the cd command removed?

0

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”.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123