On 1/16/18 11:26 AM, Greg Wooledge wrote: > On Tue, Jan 16, 2018 at 10:36:47PM +0800, Danyel Bayraktar wrote: >> Initially I thought it was specific to the terminal emulator, but it is >> actually due to the design of OS X. My problem is that when cd’ing into the >> external drive to run an `ls`, I’m not really “using” it and should be able >> to eject it. The eject should only be impossible for the time span a process >> is actually running. > > This is not unique to OS X. Every single Unix-based operating system > works like this. It has nothing to do with bash. This is nothing new. > It has been this way since the dawn of time. You are not going to > change anything.
Regardless of the merits of this proposal, OS X presents its own peculiar set of logistical problems. Apple stopped updating bash at bash-3.2, since they don't like GPLv3, so any change that touched the base system in any permanent way would have to end up going through them to backport. If you want to set your login shell to something else (e.g., /usr/local/bin/bash), you could experiment with making the changes yourself and just install your locally-modified version there. That would only help with your shell processes; any other system process using the shell (or, say, Finder) would not be affected. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/