Commit 6be30346 authored by jan.koester's avatar jan.koester
Browse files

added deep

parent 7d662dcb
Loading
Loading
Loading
Loading
+14 −1
Changes for src/shell.cpp: 14 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -1833,7 +1833,20 @@ std::vector<std::string> fresh::splitPipelineStages(const std::string &segment,
            continue;
        }

        if(c=='|'){
        if(c=='{'){
            ++braceDepth;
            current+=c;
            ++i;
            continue;
        }
        if(c=='}'){
            if(braceDepth>0) --braceDepth;
            current+=c;
            ++i;
            continue;
        }

        if(c=='|' && braceDepth==0){
            flushStage();
            ++i;
            continue;