Re: 回复: how can I implement "cd" like shell in Python?

2012-06-28 Thread Alister
On Thu, 28 Jun 2012 20:28:40 +0800, Alex chen wrote: > I just want to write a python program,it can be called in the linux > terminal like the command "cd" to change the directory of the shell > terminal > > > That would not only be needlesly re-inventing the wheel but making it square in the

Re: 回复: how can I implement "cd" like shell in Python?

2012-06-28 Thread Kushal Kumaran
Alex chen wrote: >I just want to write a python program,it can be called in the linux >terminal like the command "cd" to change the directory of the shell >terminal > This cannot be done. Shells implement cd as a builtin, rather than a command such as /usr/bin/cd because there is no way to cha