Commit 7d662dcb authored by jan.koester's avatar jan.koester
Browse files

bugfix

parent 24763de1
Loading
Loading
Loading
Loading
+4 −4
Changes for src/shell.cpp: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -1631,10 +1631,10 @@ std::vector<std::string> fresh::splitPipelineStages(const std::string &segment,
    // Depth of unclosed top-level '{' brace groups -- a '|' inside one
    // (e.g. "echo hi | tr a-z A-Z" nested inside "{ ...; } > file" used as
    // one whole pipeline stage) is that group's OWN internal pipe, not a
    // boundary between two stages of THIS pipeline; only extractBraceGroup
    // Body(), later, ever needs to see it. Mirrors the existing "$(...)"/
    // backtick protection just below, which the SAME '|' check already
    // respects.
    // boundary between two stages of THIS pipeline; only
    // extractBraceGroupBody(), later, ever needs to see it. Mirrors the
    // existing "$(...)"/backtick protection just below, which the SAME
    // '|' check already respects.
    int braceDepth=0;

    auto flushStage=[&](){