oilshell / oil

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
http://www.oilshell.org/
Other
2.78k stars 150 forks source link

Implement shopt -s autocd #1971

Open andychu opened 1 month ago

andychu commented 1 month ago

https://oilshell.zulipchat.com/#narrow/stream/264891-oil-help/topic/autocd.20doesn't.20seem.20to.20work

mcepl commented 1 week ago

This is still failed with 0.22.0.

andychu commented 1 week ago

Hm are you using this? Interested in writing some failing spec tests for it?

Here's an example commit from the last release:

https://github.com/oilshell/oil/commit/659935488d79e39705e4c4454c2d116d3bc018c3

https://github.com/oilshell/oil/wiki/Spec-Tests

mcepl commented 1 week ago

Just what's shown in that zulip chat: running

$ shopt -s autocd
$ cd
$ /tmp
$ [ "$(pwd)" = "/tmp" ] ; echo $?
0
$

should produce no other output