diff options
author | Jim Meyering <jim@meyering.net> | 1996-07-04 17:35:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-07-04 17:35:47 +0000 |
commit | e7342330e50a00242d3f68425a8709cc62ec4487 (patch) | |
tree | 8c9fa19118f5c348660199da93170ee29e2a551b | |
parent | 3f868304cf98dd21172f696b3da6cf8b71b136d4 (diff) | |
download | coreutils-e7342330e50a00242d3f68425a8709cc62ec4487.tar.xz |
Make `dir --version' and `vdir --version' print their names, not `ls'.
Reported by Ulrich Drepper.
-rw-r--r-- | src/ls.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); } |