NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: find 'cd'



On Wed, Jul 15, 2026 at 10:42:54PM -0400, Todd Gruhn wrote:

> I recall a program called 'cd' (/bin/cd?)
> There is also a function (?) that is part of
> ksh.
> 
> Did this change since 2005?

Ash Brad explained, it can't be an external program, 
and therefore it never was.

You can build shell-*internal* aliases and functions that maybe
change the prompt and then call the original, but you can't have
useful cd as an external program because that would (in the Unix-like
world) execute in a new process, resulting in all changes to the
process being lost when it exits.

	-is



Home | Main Index | Thread Index | Old Index