@@ -30,13 +30,6 @@ object:
30
30
syscall
31
31
* :ref: `popen.new <popen-new >` to create a popen object with more specific options
32
32
33
- Either function returns a handle which we will call ``popen_handle `` or ``ph ``.
34
- With the handle one can execute methods.
35
-
36
- ===============================================================================
37
- Index
38
- ===============================================================================
39
-
40
33
Below is a list of all ``popen `` functions and handle methods.
41
34
42
35
.. container :: table
@@ -87,6 +80,10 @@ Below is a list of all ``popen`` functions and handle methods.
87
80
| <popen-handle_fields>` | |
88
81
+--------------------------------------+---------------------------------+
89
82
83
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
84
+ popen module constructors
85
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
86
+
90
87
.. _popen-shell :
91
88
92
89
.. function :: shell(command [, mode])
@@ -95,8 +92,7 @@ Below is a list of all ``popen`` functions and handle methods.
95
92
96
93
:param string command: a command to run, mandatory
97
94
:param string mode: communication mode, optional
98
- :return: (if success) a popen handle, which we will call
99
- ``popen_handle `` or ``ph ``
95
+ :return: (if success) a popen handle
100
96
101
97
(if failure) ``nil, err ``
102
98
@@ -160,8 +156,7 @@ Below is a list of all ``popen`` functions and handle methods.
160
156
mandatory; absolute path to the program is required when
161
157
``opts.shell `` is false (default)
162
158
:param table opts: table of options, optional
163
- :return: (if success) a popen handle, which we will call
164
- ``popen_handle `` or ``ph ``
159
+ :return: (if success) a popen handle
165
160
166
161
(if failure) ``nil, err ``
167
162
@@ -251,7 +246,7 @@ Below is a list of all ``popen`` functions and handle methods.
251
246
| | | or when Lua GC collects the handle. |
252
247
+----------------------+----------------+-------------------------------------------+
253
248
254
- The returned ``ph `` handle provides a
249
+ The returned ``popen_handle `` handle provides a
255
250
:ref: `popen_handle:close() <popen-close >` method for explicitly
256
251
releasing all occupied resources, including the child process
257
252
itself if ``opts.keep_child `` is not set). However, if the ``close() ``
@@ -835,6 +830,10 @@ Below is a list of all ``popen`` functions and handle methods.
835
830
means success for a caller. The return values are purely
836
831
informational: they are for logging or some kind of reporting.
837
832
833
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
834
+ popen handle fields
835
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
836
+
838
837
.. _popen-handle_fields :
839
838
840
839
**Handle fields **
@@ -851,6 +850,10 @@ Below is a list of all ``popen`` functions and handle methods.
851
850
852
851
See :ref: `popen_handle:info() <popen-info >` for details.
853
852
853
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
854
+ popen module constants
855
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
856
+
854
857
.. _popen-constants :
855
858
856
859
**Module constants **
0 commit comments