Maybe it should print "$HOME is not set" in that case?
On Sun, Dec 25, 2022 at 2:52 PM Valery Ushakov <u...@stderr.spb.ru> wrote: > On Sat, Dec 24, 2022 at 22:32:22 -0500, Jan Schaumann wrote: > > > Robert Elz <k...@munnari.oz.au> wrote: > > > Why bother? > > > > I happily admit that it's a rare edge case. I simply > > find it surprising that 'cd' gives up if HOME is > > unset. Seems unintuitive to me. > > Some would say, "gives up", some would say it makes you aware you have > a problem. :) > > DWIM is enticing, sure, but at some point it trasmutes into that > JavaScript "WAT" talk moment. > > -uwe >