Table of Contents

Module: commands ./src/peak/tools/n2/commands.py
Imported modules   
from getopt import getopt
import os
from peak.api import *
import re
import sys
Functions   
dequote
parseCmd
pipesplit
qsplit
  dequote 
dequote ( s )

  parseCmd 
parseCmd (
        ctx,
        cmdline,
        defaults,
        )

Parse a command line, and return a dictionary containing argv, stdin, stdout, stderr, and environ.

default for the last for are pulled from the same-named attributes of the object "defaults"

Supports <, >, >>, 2>, 2>>, | redirection, quoted arguments.

TODO: support VAR=value before command to change environment?

  pipesplit 
pipesplit ( s )

  qsplit 
qsplit ( s )

Classes   

ShellCommand


Table of Contents

This document was automatically generated on Mon Nov 11 01:11:04 2024 by HappyDoc version 2.1