Nicolas Hillegeer
3d3b233df8
os/shell: implement os_system
...
With the goal to support pipe-only system() calls.
Notes on the second (vim) argument to f_system() (i.e.: redirected input)
and its implications:
- When calling system('cat -', ['some', 'list']), vanilla vim (before a
recent patch that added support for passing lists) just passes an empty
file to the process. This is the same as immediately closing the pipe,
which os_system does when no input is given. If we wouldn't close the
pipe, the process will linger forever (as is the case with `cat -`).
As of now, it's not allowed to pass a non-NULL pointer as the `output`
parameter. In other words, it's not possible to signal disinterst in the
process output. That may change in the future.
2014-07-27 14:00:44 -03:00
..
2014-07-17 11:37:41 -03:00
2014-07-16 19:05:35 +02:00
2014-07-27 14:00:44 -03:00
2014-07-17 07:16:53 -04:00
2014-07-17 11:37:41 -03:00
2014-07-11 18:33:07 -04:00
2014-07-11 18:33:07 -04:00
2014-05-15 20:46:02 +02:00
2014-07-16 17:12:34 +02:00
2014-07-16 19:07:45 +02:00
2014-07-20 04:49:38 -04:00
2014-07-22 05:28:17 -05:00
2014-07-09 00:18:19 +02:00
2014-07-12 14:26:55 +02:00
2014-07-17 11:37:08 -03:00
2014-07-09 00:18:18 +02:00
2014-06-02 11:04:18 -03:00
2014-07-09 00:18:19 +02:00
2014-06-20 02:44:11 -04:00
2014-07-14 21:14:40 +02:00
2014-06-02 11:04:18 -03:00
2014-07-11 18:33:07 -04:00
2014-06-02 11:04:18 -03:00
2014-07-17 11:37:42 -03:00
2014-07-12 14:26:55 +02:00
2014-05-15 20:46:02 +02:00
2014-07-21 19:29:29 +02:00
2014-07-16 17:12:34 +02:00
2014-07-20 16:59:57 -04:00
2014-07-12 14:26:55 +02:00
2014-07-17 11:37:41 -03:00
2014-07-22 05:28:17 -05:00
2014-07-12 14:26:55 +02:00
2014-07-17 11:37:41 -03:00
2014-07-12 14:26:55 +02:00
2014-07-09 00:18:19 +02:00
2014-07-16 19:07:45 +02:00
2014-07-17 11:37:42 -03:00
2014-07-12 14:26:55 +02:00
2014-07-09 00:18:18 +02:00
2014-06-02 11:04:17 -03:00
2014-07-09 00:18:20 +02:00
2014-06-12 01:20:36 -05:00
2014-07-17 11:23:29 -03:00
2014-07-12 14:26:55 +02:00
2014-07-09 00:18:19 +02:00
2014-06-02 11:04:18 -03:00
2014-07-23 14:37:48 +02:00
2014-07-09 00:18:19 +02:00
2014-07-20 16:59:57 -04:00
2014-07-17 11:37:42 -03:00
2014-07-12 14:26:55 +02:00
2014-07-22 05:28:17 -05:00
2014-07-14 21:14:40 +02:00
2014-06-02 11:04:18 -03:00
2014-07-09 00:18:19 +02:00
2014-07-16 19:05:34 +02:00
2014-06-27 13:59:29 +02:00
2014-07-14 21:14:40 +02:00
2014-06-02 11:04:17 -03:00
2014-07-09 00:18:19 +02:00
2014-06-02 11:04:17 -03:00
2014-07-11 18:33:07 -04:00
2014-07-12 14:26:55 +02:00
2014-07-09 00:18:19 +02:00
2014-06-02 11:04:18 -03:00
2014-06-02 11:04:17 -03:00
2014-07-17 11:37:41 -03:00
2014-07-20 16:59:57 -04:00
2014-07-22 05:28:17 -05:00
2014-06-02 11:04:17 -03:00
2014-06-02 11:04:17 -03:00
2014-07-17 11:37:08 -03:00
2014-07-17 11:37:08 -03:00
2014-05-15 20:46:02 +02:00
2014-07-09 00:18:20 +02:00
2014-06-02 11:04:17 -03:00
2014-07-14 20:28:40 +02:00
2014-07-12 14:26:55 +02:00
2014-07-16 19:05:34 +02:00
2014-07-09 00:18:20 +02:00
2014-07-12 14:26:55 +02:00
2014-05-15 20:46:02 +02:00
2014-07-14 21:14:40 +02:00
2014-06-02 11:04:17 -03:00
2014-07-22 05:28:17 -05:00
2014-07-16 19:05:35 +02:00
2014-07-09 00:18:19 +02:00
2014-06-02 11:04:17 -03:00
2014-07-17 11:37:42 -03:00
2014-07-25 19:49:20 +02:00
2014-07-14 21:14:40 +02:00
2014-07-12 14:26:55 +02:00
2014-07-11 18:11:20 -04:00
2014-07-11 18:11:20 -04:00
2014-07-11 18:33:07 -04:00
2014-07-11 18:33:07 -04:00
2014-07-17 11:37:42 -03:00
2014-07-16 19:07:45 +02:00
2014-07-17 11:37:41 -03:00
2014-07-12 14:26:55 +02:00
2014-07-17 11:37:41 -03:00
2014-07-17 11:37:41 -03:00
2014-07-12 14:26:55 +02:00
2014-07-14 21:14:39 +02:00
2014-07-16 19:05:35 +02:00
2014-07-16 19:05:35 +02:00
2014-07-09 00:18:20 +02:00
2014-06-12 01:20:36 -05:00
2014-07-11 18:33:07 -04:00
2014-06-02 11:04:17 -03:00
2014-07-16 19:05:34 +02:00
2014-07-20 16:59:57 -04:00
2014-07-20 16:59:57 -04:00
2014-07-22 05:28:17 -05:00
2014-07-12 14:26:55 +02:00
2014-07-11 18:33:07 -04:00
2014-07-14 20:28:40 +02:00
2014-07-16 17:12:34 +02:00
2014-07-12 14:26:55 +02:00
2014-07-16 17:12:34 +02:00
2014-07-11 18:33:07 -04:00
2014-07-16 17:12:34 +02:00
2014-07-12 14:26:55 +02:00
2014-07-21 19:29:29 +02:00
2014-06-02 11:04:17 -03:00
2014-05-15 20:46:02 +02:00
2014-07-14 21:14:40 +02:00
2014-07-11 18:33:07 -04:00
2014-07-09 00:18:20 +02:00
2014-07-11 18:33:07 -04:00
2014-07-16 19:05:34 +02:00
2014-07-16 19:05:34 +02:00
2014-07-12 14:26:55 +02:00
2014-07-11 18:33:07 -04:00
2014-07-12 14:26:55 +02:00
2014-07-22 05:28:17 -05:00
2014-07-14 21:14:40 +02:00
2014-05-15 20:46:02 +02:00
2014-07-21 19:29:29 +02:00
2014-07-21 19:29:29 +02:00
2014-07-20 16:59:57 -04:00
2014-07-11 18:33:07 -04:00
2014-07-12 14:26:55 +02:00
2014-07-16 19:07:45 +02:00
2014-07-16 19:05:35 +02:00
2014-06-02 11:04:18 -03:00
2014-05-15 20:46:02 +02:00
2014-07-20 16:59:57 -04:00
2014-06-02 11:04:17 -03:00
2014-07-22 05:28:17 -05:00
2014-07-11 18:33:07 -04:00
2014-07-12 14:26:55 +02:00