text: #ifndef SCRIPT_H
  #define SCRIPT_H
  
  #include "common.h"
  
  struct word {
  	enum wordtype {WORD_NORMAL, WORD_LITERAL, WORD_EXPAND, WORD_VARIABLE, WORD_MULTI} type;
  	union {
  		char *str;
  		struct obj *obj;
  		vec(vec(struct word)) script;
  		vec(struct word) words;
  	} val;
  };
  
  extern const char *valid;
  
  void freescript(vec(vec(struct word)) script);
  
  char *escexpand(char *str, size_t max, bool *var);
  
  #endif
  