Switch to unified view

a/src/execmd.h b/src/execmd.h
...
...
127
     * @return the exec ouput status (0 if ok), or -1
127
     * @return the exec ouput status (0 if ok), or -1
128
     */
128
     */
129
    int doexec(const std::string &cmd, const std::vector<std::string>& args, 
129
    int doexec(const std::string &cmd, const std::vector<std::string>& args, 
130
           const std::string *input = 0, 
130
           const std::string *input = 0, 
131
           std::string *output = 0);
131
           std::string *output = 0);
132
133
    /** Same as doexec but cmd and args in one vector */
134
    int doexec1(const std::vector<std::string>& args, 
135
                const std::string *input = 0, 
136
                std::string *output = 0) {
137
        if (args.empty())
138
            return -1;
139
        return doexec(args[0],
140
                      std::vector<std::string>(args.begin() + 1, args.end()),
141
                      input, output);
142
    }
132
143
133
    /*
144
    /*
134
     * The next four methods can be used when a Q/A dialog needs to be 
145
     * The next four methods can be used when a Q/A dialog needs to be 
135
     * performed with the command
146
     * performed with the command
136
     */
147
     */