1
0
mirror of https://github.com/janet-lang/janet synced 2026-06-04 11:42:17 +00:00

Deprecate file/popen.

os/spawn is the prefered way of creating a subprocess and
communicating with it.
This commit is contained in:
Calvin Rose
2020-12-30 10:22:45 -06:00
parent ab37ee6ebb
commit d457aa5951
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -777,7 +777,7 @@ static const JanetReg io_cfuns[] = {
#ifndef JANET_NO_PROCESSES
{
"file/popen", cfun_io_popen,
JDOC("(file/popen command &opt mode)\n\n"
JDOC("(file/popen command &opt mode) (DEPRECATED for os/spawn)\n\n"
"Open a file that is backed by a process. The file must be opened in either "
"the :r (read) or the :w (write) mode. In :r mode, the stdout of the "
"process can be read from the file. In :w mode, the stdin of the process "