* Jim Meyering ([EMAIL PROTECTED]) wrote:

> Thanks for persevering.
> Please base your changes on what is in CVS.
> Here are instructions for checking out the latest:
> 
>   http://savannah.gnu.org/cvs/?group=coreutils

OK, here is a handful of stuff against the CVS checkout.
Is this OK?

Dave
P.S. Which type of copyright thing do I need for this? If someone
can point me at the relevant stuff I'll try and get it sorted.

 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    | Running GNU/Linux on Alpha,68K| Happy  \ 
\ gro.gilbert @ treblig.org | MIPS,x86,ARM,SPARC,PPC & HPPA | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
diff -ur ../../orig/coreutils-cvs/src/basename.c src/basename.c
--- ../../orig/coreutils-cvs/src/basename.c     2004-11-17 00:56:25.000000000 
+0000
+++ src/basename.c      2005-04-03 16:32:28.000000000 +0100
@@ -64,6 +64,15 @@
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
+      fputs (_("\
+Examples:\n\
+  basename /usr/foo/lossage/functions.l     returns functions.l\n\
+  basename /usr/foo/lossage/functions.l .l  returns functions\n\
+  basename functions.lisp p                 returns functions.lis\n\
+  basename functions.foo .bar               returns functions.foo\n\
+\n\
+"), stdout);
+
       printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
     }
   exit (status);
diff -ur ../../orig/coreutils-cvs/src/cat.c src/cat.c
--- ../../orig/coreutils-cvs/src/cat.c  2004-09-21 23:26:42.000000000 +0100
+++ src/cat.c   2005-04-03 18:00:19.000000000 +0100
@@ -118,6 +118,15 @@
   -B, --binary             use binary writes to the console device.\n\n\
 "), stdout);
 #endif
+      fputs (_("\n\
+Examples:\n\
+  cat first middle last    Concatenate the three files onto standard output.\n\
+  cat first - last         Concatenate 'first', then standard input then\n\
+                           'last' onto standard output.\n\
+  cat -s first last        Concatenate 'first' and 'last' to standard output\n\
+                           removing adjacent blank lines. [GNU only]\n\
+\n\
+"), stdout);
       printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
     }
   exit (status);
diff -ur ../../orig/coreutils-cvs/src/chgrp.c src/chgrp.c
--- ../../orig/coreutils-cvs/src/chgrp.c        2005-03-28 18:47:48.000000000 
+0100
+++ src/chgrp.c 2005-04-03 18:50:52.000000000 +0100
@@ -153,6 +153,15 @@
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
+      fputs (_("\n\
+Examples:\n\
+  chgrp mygroup file1 file2        Change the group ownership of both files 
to\n\
+                                   'mygroup'.\n\
+  chgrp mygroup -R mydir           Change the group ownership of 'mydir' and\n\
+                                   all children to 'mygroup'.\n\
+  chgrp --reference=myfile file2   Change the group ownership of 'file2' to\n\
+                                   be the same as 'myfile'. [GNU only]\n\
+"), stdout);
       printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
     }
   exit (status);
diff -ur ../../orig/coreutils-cvs/src/chown.c src/chown.c
--- ../../orig/coreutils-cvs/src/chown.c        2005-03-28 18:47:06.000000000 
+0100
+++ src/chown.c 2005-04-03 20:32:11.000000000 +0100
@@ -148,6 +148,18 @@
 to login group if implied by a `:' following a symbolic OWNER.\n\
 OWNER and GROUP may be numeric as well as symbolic.\n\
 "), stdout);
+      fputs (_("\n\
+Examples:\n\
+  chown auser file1 file2          Change the user ownership of both files 
to\n\
+                                   'auser'.\n\
+  chown -R auser mydir             Change the user ownership of 'mydir' and\n\
+                                   all its children to 'auser'.\n\
+  chown auser:mygroup file1        Change the user ownership of 'file1' to\n\
+                                   'auser' and group ownership to 'mygroup'.\n\
+  chown --reference=myfile file2   Change the user and group ownership of\n\
+                                   'file2' to be as of 'myfile'. [GNU only]\n\
+"), stdout);
+
       printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
     }
   exit (status);
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to