YASH 0.1
CLI written in C
Loading...
Searching...
No Matches
Line Struct Reference

Represents a full line of user input. More...

#include <yash.h>

Public Attributes

int is_pipeline
 Flag indicating if the line is a pipeline.
 
Command left
 Left command.
 
Command right
 Right command.
 
char original [MAX_CMDLINE]
 Original command line string.
 

Detailed Description

Represents a full line of user input.

Invariants:

  • If is_pipeline == 0: left is valid, right is unused.
  • If is_pipeline == 1: both left and right must have argv[0].
  • Background execution (&) is invalid when is_pipeline == 1.
  • original always contains the raw command line string as typed, including & if present.

The documentation for this struct was generated from the following file: