aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_execution.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-13 02:49:41 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-13 02:49:41 -0800
commitd9056081e78cc847574589d8ca31f2e25a82b6f5 (patch)
tree502538a6c2b6e1e032ee3a5c49dce6de55c14691 /parse_execution.cpp
parent95f87cdd56602fe7c2746519f875741c325d2df8 (diff)
Added tests for piping an fd other than stdout
Diffstat (limited to 'parse_execution.cpp')
-rw-r--r--parse_execution.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse_execution.cpp b/parse_execution.cpp
index 70454d15..cc0a4ddd 100644
--- a/parse_execution.cpp
+++ b/parse_execution.cpp
@@ -1011,7 +1011,7 @@ bool parse_execution_context_t::determine_io_chain(const parse_node_t &statement
if (old_fd < 0 || errno || *end)
{
errored = report_error(redirect_node,
- _(L"Requested redirection to something that is not a file descriptor %ls"),
+ _(L"Requested redirection to '%ls', which is not a valid file descriptor"),
target.c_str());
}
else
@@ -1186,7 +1186,7 @@ parse_execution_result_t parse_execution_context_t::populate_job_from_job_node(j
{
assert(job_cont->type == symbol_job_continuation);
- /* Handle the pipe, whose fd may not be the obvious stdoud */
+ /* Handle the pipe, whose fd may not be the obvious stdout */
const parse_node_t &pipe_node = *get_child(*job_cont, 0, parse_token_type_pipe);
processes.back()->pipe_write_fd = fd_redirected_by_pipe(get_source(pipe_node));