[Top][All Lists]

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

Re: [annoyance/non-feature] On OS X, every process is "occupying" CWD, m

From: Bob Proulx
Subject: Re: [annoyance/non-feature] On OS X, every process is "occupying" CWD, making disk ejects impossible after cd'ing into them.
Date: Sat, 20 Jan 2018 14:59:31 -0700
User-agent: Mutt/1.9.2 (2017-12-15)

Danyel Bayraktar wrote:
> Bash should idle in (e.g.) /tmp or /var/folders/xyz, i.e. occupy
> that file as ‘CWD’ towards the OS, but obviously not expose this to
> depending code, so still spawn every child process/builtin/keyword
> inside the (memory-stored) cwd which will be updated with `cd` and
> used throughout.

That would create regressions.  Consider the case where a shell
changes directory to some directory.  Then that directory is renamed.
Currently the shell having it as a current working directory will
continue to operate.  In your proposal the shell would suddenly fail
because it would not know the directory was renamed and would be
unable to return to it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]