fix bug that can cause recursive .forward files to fail
[unix-history] / usr / src / bin / sh / expand.h
index aec973b..dc4d6ab 100644 (file)
@@ -1,13 +1,13 @@
 /*-
 /*-
- * Copyright (c) 1991 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1991, 1993
+ *     The Regents of the University of California.  All rights reserved.
  *
  * This code is derived from software contributed to Berkeley by
  * Kenneth Almquist.
  *
  * %sccs.include.redist.c%
  *
  *
  * This code is derived from software contributed to Berkeley by
  * Kenneth Almquist.
  *
  * %sccs.include.redist.c%
  *
- *     @(#)expand.h    5.1 (Berkeley) %G%
+ *     @(#)expand.h    8.1 (Berkeley) %G%
  */
 
 struct strlist {
  */
 
 struct strlist {
@@ -21,6 +21,16 @@ struct arglist {
        struct strlist **lastp;
 };
 
        struct strlist **lastp;
 };
 
+/*
+ * expandarg() flags
+ */
+#define EXP_FULL       0x1     /* perform word splitting & file globbing */
+#define EXP_TILDE      0x2     /* do normal tilde expansion */
+#define        EXP_VARTILDE    0x4     /* expand tildes in an assignment */
+#define        EXP_REDIR       0x8     /* file glob for a redirection (1 match only) */
+#define EXP_CASE       0x10    /* keeps quotes around for CASE pattern */
+
+
 #ifdef __STDC__
 union node;
 void expandarg(union node *, struct arglist *, int);
 #ifdef __STDC__
 union node;
 void expandarg(union node *, struct arglist *, int);