File: doplaincommand.cc

package info (click to toggle)
stealth 1.45-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 716 kB
  • ctags: 175
  • sloc: cpp: 1,612; makefile: 88; sh: 70
file content (15 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "scanner.ih"

void Scanner::doPlainCommand(Process &child)
{
    Util::debug() << "running unchecked command: `" << s_firstWord[0] << "'"
                                                                    << endl;

    if (!Arg::instance().option('n'))    // unless -n (no execute commands)
    {
        nextCommand(child,                  // start the next command
                        s_firstWord[0]);    

        waitForSentinel(child);             // read its output
    }
}