]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Make `dir --version' and `vdir --version' print their names, not `ls'.
authorJim Meyering <jim@meyering.net>
Thu, 4 Jul 1996 17:35:47 +0000 (17:35 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 4 Jul 1996 17:35:47 +0000 (17:35 +0000)
Reported by Ulrich Drepper.

src/ls.c

index d100802804a66d663c1bf4f72505830e138ca0be..55465bee580c3f696c5d73f179a266d1dc1d0fbd 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -661,7 +661,10 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("ls - %s\n", PACKAGE_VERSION);
+      printf ("%s - %s\n",
+             (ls_mode == LS_LS ? "ls"
+              : (ls_mode == LS_MULTI_COL ? "dir" : "vdir")
+             PACKAGE_VERSION);
       exit (0);
     }