]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: expand a response file and a wildcard on OS/2
authorKO Myung-Hun <komh@chollian.net>
Tue, 16 Dec 2014 02:27:28 +0000 (11:27 +0900)
committerJim Meyering <meyering@fb.com>
Thu, 18 Dec 2014 15:21:21 +0000 (07:21 -0800)
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.

src/system.h

index 8b3f768d31602ace53a6f193c871eb5b058bd004..2d2635a6871f0556766cbc397eedd02d390d7e3b 100644 (file)
@@ -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"