elves / elvish

Powerful scripting language & versatile interactive shell
https://elv.sh/
BSD 2-Clause "Simplified" License
5.65k stars 299 forks source link

How to use `os.exists`? #1706

Closed da-liii closed 1 year ago

da-liii commented 1 year ago

https://elv.sh/ref/os.html

> use os
Exception: no such module: os
[tty 20]:1:1: use os

Confused on the os module, how to use it?

krader1961 commented 1 year ago

The os module was introduced 2023-05-08 (two months ago) and will be included in the Elvish 0.20 release.

P.S., When reporting issues it's important to include the Elvish version you are using; e.g., the output of put $version or elvish --version.

da-liii commented 1 year ago

I'm using the latest stable release (0.19.2). We should document about the minimum elvish version here: https://github.com/elves/elvish/blob/master/website/ref/os.md