summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKO Myung-Hun <komh@chollian.net>2014-12-16 11:27:28 +0900
committerJim Meyering <meyering@fb.com>2014-12-18 07:21:21 -0800
commit92519ce05878ddb78056ea2693ff986e2ac05730 (patch)
tree64866da4c5c7078a11cb1ffd8906bc8d17439bc0
parent8799c82d81445a93d8d96b0046176ee7f144ffc2 (diff)
downloadcoreutils-92519ce05878ddb78056ea2693ff986e2ac05730.tar.xz
build: expand a response file and a wildcard on OS/2
OS/2 traditional shells(cmd) do not expand a response file(@file) or a wildcard. Expand them in each utility itself. * src/system.h (initialize_main): Define on OS/2. Expand a response file and a wildcard.
-rw-r--r--src/system.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/system.h b/src/system.h
index 8b3f768d3..2d2635a68 100644
--- a/src/system.h
+++ b/src/system.h
@@ -135,9 +135,10 @@ enum
#include <inttypes.h>
/* Redirection and wildcarding when done by the utility itself.
- Generally a noop, but used in particular for native VMS. */
+ Generally a noop, but used in particular for OS/2. */
#ifndef initialize_main
-# define initialize_main(ac, av)
+# define initialize_main(ac, av) \
+ do { _wildcard(ac, av); _response(ac, av); } while (0)
#endif
#include "stat-macros.h"