| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This reverts commit 74135c0600d5dcc40d396d0e7293c17b8d4bdaa7, reversing
changes made to 6d749789ce240a3e6f1447777db63fd8e7525560.
See discussion in #1317
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
redirections for a process were flattened into a big list associated with the job, so there was no way to tell which redirections applied to each process. Each process therefore got all the redirections associated with the job. See https://github.com/fish-shell/fish-shell/issues/877 for how this could manifest.
With this change, jobs only track their block-level redirections. Process level redirections are correctly associated with the process, and at exec time we stitch them together (block, pipe, and process redirects).
This fixes the weird issues where redirects bleed across pipelines (like #877), and also allows us to play with the order in which redirections are applied, since the final list is constructed right before it's needed. This lets us put pipes after block level redirections but before process level redirections, so that a 2>&1-type redirection gets picked up after the pipe, i.e. it should fix https://github.com/fish-shell/fish-shell/issues/110
This is a significant change. The tests all pass. Cross your fingers.
|
|
|
|
| |
https://github.com/fish-shell/fish-shell/issues/110
|
|
|
|
|
|
| |
to child processes when either starting them or moving them to the foreground.
https://github.com/fish-shell/fish-shell/issues/176
|
|
|
|
|
|
|
|
|
|
|
| |
On FreeBSD, compilation complains that "this file includes
<sys/termios.h> which is deprecated, use <termios.h> instead". On Linux
and FreeBSD, <sys/termios.h> literally just pulls in <termios.h>. On OS
X and Solaris, <termios.h> pulls in <sys/termios.h>.
<termio.h> doesn't exist on FreeBSD or Mac OS X, and on Linux is marked
as deprecated and just includes <termios.h>. It does exist on Solaris,
but no `struct termio` is ever actually used in the codebase.
|
|
|
|
| |
an input redirection only
|
|
|
|
| |
In exec(), pipe_{write,read} no longer get reused.
|
|
|
|
| |
file descriptors
|
|
|
|
| |
io_file_t take its path directly. Make io_buffer_t no longer use a shared_ptr for its data.
|
|
|
|
|
|
|
|
|
|
| |
io_buffer_t's constructor"
This reverts commit d48ffab9d67da48cf45c2f5560c21a767144545f.
Conflicts:
io.cpp
io.h
|
| |
|
|
|
|
| |
constructor
|
| |
|
| |
|
| |
|
|
|
|
| |
constructor private
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This reverts commit 77f1b1f0fe27778750bb9b9aa53f6bc42d5e5843.
|
|
|
|
|
|
|
|
|
|
|
| |
https://github.com/fish-shell/fish-shell/pull/487
Revert "Merge branch 'oo-io' of git://github.com/xiaq/fish-shell into xiaq-oo-io"
This reverts commit f3c8f535a48d5fdd518bd60879ade948bc8be7e6, reversing
changes made to b02f6cf3bc4343cf3e068dee3cb46de7139a5a27.
Also reverts ac023f7588e562a03fdea7fd2feda487f18827c7 and a79d3c680c9548566309121630dadc94e48934c4
|
| |
|
|
|
|
| |
postfork.cpp. Eliminate copy constructor in io_data_t. Simplify some other uses of shared_ptr<io_data_t>
|
|
|
|
| |
Copy constructor of io_data_t is removed.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes https://github.com/fish-shell/fish-shell/issues/281
|
|
|
|
|
| |
Rewrite IO chains to be a vector of pointers, instead of a linked list
Removed io_transmogrify
|
| |
|
|
|
|
| |
fork()
|
|
|
|
| |
shares output buffers (not sure how this ever worked before)
|
| |
|
|
|
|
| |
mismatched new/free() in io.cpp
|
| |
|
| |
|
| |
|
|
|