<div dir="auto"><div dir="ltr"><div dir="ltr">On Fri, 10 Jul 2020 at 09:39, Giles Orr via talk <<a href="mailto:talk@gtalug.org" target="_blank" rel="noreferrer">talk@gtalug.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The worst case I've seen is 'git', and this is what's brought me back<br>
to this puzzle. If you're in a directory and you 'git rm' the last<br>
file in the directory, 'git' will helpfully delete the directory as<br>
well.  Never mind that you're still in the directory, and are now in<br>
the very confusing position of being in a non-existent directory.<br></blockquote><div><br></div><div>Huh.  I just experienced this situation for (as far as I can tell) the</div><div>very first time about 1/2h ago.  I was in a directory, did a merge</div><div>that got rid of the only file in $PWD, and found myself in that</div><div>somewhat odd place.</div><div><br></div><div>I wasn't overly confused at it; I realized that a broadly reasonable</div><div>thing was happening.   But yeah, it was strange.</div><div><br></div><div>I was in zsh rather than bash; that made little difference in the</div><div>matter.  I had a strange looking prompt, but all resolved fine.<br></div></div></div></div>