You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that one can get a file descriptor for an open file by indexing: $file[fd]. The value is -1 if the file is closed, which seems to be a good way to tell whether the file is still open. Also, $file[name] contains the filename. However, these keys does not seem to be documented. Unless this feature is slated to go away, I think it would be a good thing to document it.
What happened, and what did you expect to happen?
I notice that one can get a file descriptor for an open file by indexing:
$file[fd]
. The value is-1
if the file is closed, which seems to be a good way to tell whether the file is still open. Also,$file[name]
contains the filename. However, these keys does not seem to be documented. Unless this feature is slated to go away, I think it would be a good thing to document it.Output of "elvish -version"
0.21.0-dev.0.20240724150116-9597a25e366b-dirty
Code of Conduct
The text was updated successfully, but these errors were encountered: