bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] [PATCH 3/3] tar: support wildcards on OS/2


From: KO Myung-Hun
Subject: [Bug-tar] [PATCH 3/3] tar: support wildcards on OS/2
Date: Fri, 18 Jan 2019 17:43:46 +0900

OS/2 shell(CMD.EXE) does not expand wildcards. Do it ourselves.

* src/tar.c (main) [os2]: Call _wildcard() at startup.
---
 src/tar.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/tar.c b/src/tar.c
index d66fed8..f2a62d8 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -2694,6 +2694,11 @@ tar_print_progname (void)
 int
 main (int argc, char **argv)
 {
+#ifdef __OS2__
+  /* Expand wildcards. */
+  _wildcard (&argc, &argv);
+#endif
+
   set_start_time ();
   set_program_name (argv[0]);
 #ifdef ENABLE_ERROR_PRINT_PROGNAME
-- 
2.13.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]