GNU bug report logs - #19378
[PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

Previous Next

Package: coreutils;

Reported by: KO Myung-Hun <komh78 <at> gmail.com>

Date: Sun, 14 Dec 2014 03:49:06 UTC

Severity: normal

Tags: fixed, patch

Merged with 19375, 19377

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19378 in the body.
You can then email your comments to 19378 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#19378; Package coreutils. (Sun, 14 Dec 2014 03:49:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to KO Myung-Hun <komh78 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sun, 14 Dec 2014 03:49:07 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: KO Myung-Hun <komh78 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du,
 head: support wildcards on OS/2
Date: Sun, 14 Dec 2014 12:47:40 +0900
And ln,ls,mv,rm,tail.

* src/cat.c (main): Expand wildcards on OS/2.
* src/chcon.c (main): Likewise.
* src/chgrp.c (main): Likewise.
* src/chmod.c (main): Likewise.
* src/chown.c (main): Likewise.
* src/cp.c (main): Likewise.
* src/du.c (main): Likewise.
* src/head.c (main): Likewise.
* src/ln.c (main): Likewise.
* src/ls.c (main): Likewise.
* src/mv.c (main): Likewise.
* src/rm.c (main): Likewise.
* src/tail.c (main): Likewise.

Patches from coreutils 8.8 by Paul Smedley.
---
 src/cat.c   | 4 ++++
 src/chcon.c | 4 ++++
 src/chgrp.c | 4 ++++
 src/chmod.c | 4 ++++
 src/chown.c | 4 ++++
 src/cp.c    | 4 ++++
 src/du.c    | 4 ++++
 src/head.c  | 4 ++++
 src/ln.c    | 4 ++++
 src/ls.c    | 4 ++++
 src/mv.c    | 4 ++++
 src/rm.c    | 4 ++++
 src/tail.c  | 4 ++++
 13 files changed, 52 insertions(+)

diff --git a/src/cat.c b/src/cat.c
index c7bb7e1..0138114 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -544,6 +544,10 @@ main (int argc, char **argv)
   bool show_tabs = false;
   int file_open_mode = O_RDONLY;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   static struct option const long_options[] =
   {
     {"number-nonblank", no_argument, NULL, 'b'},
diff --git a/src/chcon.c b/src/chcon.c
index 675c2b1..bfe87ac 100644
--- a/src/chcon.c
+++ b/src/chcon.c
@@ -422,6 +422,10 @@ main (int argc, char **argv)
   char *reference_file = NULL;
   int optc;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
   setlocale (LC_ALL, "");
diff --git a/src/chgrp.c b/src/chgrp.c
index cec51db..711cf92 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -184,6 +184,10 @@ main (int argc, char **argv)
   bool ok;
   int optc;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
   setlocale (LC_ALL, "");
diff --git a/src/chmod.c b/src/chmod.c
index 6ad8767..02048c7 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -422,6 +422,10 @@ main (int argc, char **argv)
   char const *reference_file = NULL;
   int c;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
   setlocale (LC_ALL, "");
diff --git a/src/chown.c b/src/chown.c
index e3f931d..ed8d35b 100644
--- a/src/chown.c
+++ b/src/chown.c
@@ -176,6 +176,10 @@ main (int argc, char **argv)
   bool ok;
   int optc;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
   setlocale (LC_ALL, "");
diff --git a/src/cp.c b/src/cp.c
index 791a744..5b141db 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -928,6 +928,10 @@ main (int argc, char **argv)
   bool no_target_directory = false;
   char const *scontext = NULL;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
   setlocale (LC_ALL, "");
diff --git a/src/du.c b/src/du.c
index f5726c7..d1807d8 100644
--- a/src/du.c
+++ b/src/du.c
@@ -728,6 +728,10 @@ main (int argc, char **argv)
   cwd_only[0] = bad_cast (".");
   cwd_only[1] = NULL;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
   setlocale (LC_ALL, "");
diff --git a/src/head.c b/src/head.c
index 2782f8e..64f26ea 100644
--- a/src/head.c
+++ b/src/head.c
@@ -949,6 +949,10 @@ main (int argc, char **argv)
   static char const *const default_file_list[] = {"-", NULL};
   char const *const *file_list;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
   setlocale (LC_ALL, "");
diff --git a/src/ln.c b/src/ln.c
index ce812cc..a8ed947 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -470,6 +470,10 @@ main (int argc, char **argv)
   int n_files;
   char **file;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
   setlocale (LC_ALL, "");
diff --git a/src/ls.c b/src/ls.c
index 5bae06f..f909735 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -1247,6 +1247,10 @@ main (int argc, char **argv)
   struct pending *thispend;
   int n_files;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   /* The signals that are trapped, and the number of such signals.  */
   static int const sig[] =
     {
diff --git a/src/mv.c b/src/mv.c
index 2eacb2c..f79a6f8 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -356,6 +356,10 @@ main (int argc, char **argv)
   char **file;
   bool selinux_enabled = (0 < is_selinux_enabled ());
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
   setlocale (LC_ALL, "");
diff --git a/src/rm.c b/src/rm.c
index 4c8ee6e..e76a817 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -210,6 +210,10 @@ main (int argc, char **argv)
   bool prompt_once = false;
   int c;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
   setlocale (LC_ALL, "");
diff --git a/src/tail.c b/src/tail.c
index 4c5f943..134e4df 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -2150,6 +2150,10 @@ main (int argc, char **argv)
      see if it has changed.  */
   double sleep_interval = 1.0;
 
+#ifdef __OS2__
+  _wildcard (&argc, &argv);
+#endif
+
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
   setlocale (LC_ALL, "");
-- 
1.8.5.2





Forcibly Merged 19375 19377 19378. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Sun, 14 Dec 2014 13:18:02 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 19 Dec 2014 02:08:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 10 Oct 2018 16:01:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 19375 <at> debbugs.gnu.org and KO Myung-Hun <komh78 <at> gmail.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 10 Oct 2018 16:01:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 08 Nov 2018 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 228 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.