diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-22 22:57:14 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-22 22:57:14 +0000 |
commit | dbc1285a309fc28b62ba54af3aec3c98667ce038 (patch) | |
tree | fd314831e9239ff8924e7c45c2fa0fa24ea67b2e /usr.bin | |
parent | 1cebc94c8110d707ec02965e5ec36314195d7974 (diff) |
Tell glob() to do tilde and brace expansion too.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/less/lglob.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/less/lglob.h b/usr.bin/less/lglob.h index b81c655f58e..88b13bb5c0b 100644 --- a/usr.bin/less/lglob.h +++ b/usr.bin/less/lglob.h @@ -24,8 +24,9 @@ #include <glob.h> +#define GLOB_FLAGS (GLOB_NOCHECK|GLOB_BRACE|GLOB_TILDE) #define DECL_GLOB_LIST(list) glob_t list; int i; -#define GLOB_LIST(filename,list) glob(filename,GLOB_NOCHECK,0,&list) +#define GLOB_LIST(filename,list) glob(filename,GLOB_FLAGS,0,&list) #define GLOB_LIST_FAILED(list) 0 #define SCAN_GLOB_LIST(list,p) i = 0; i < list.gl_pathc; i++ #define INIT_GLOB_LIST(list,p) p = list.gl_pathv[i] |