[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ls and non-equivalence between -1 and single-column
From: |
Radu Grigore |
Subject: |
ls and non-equivalence between -1 and single-column |
Date: |
Sun, 21 Dec 2008 19:14:36 +0000 |
The GNU coreutils documentation [1] suggests that "-1" and
"--format=single-column" are equivalent, yet the following two
commands produce different results:
ls -l -1
ls -l --format=single-column
According to POSIX [2] both behaviors are correct (for "ls -l -1"), so
I guess you need to pick one or update the docs.
[1]
http://www.gnu.org/software/coreutils/manual/html_node/General-output-formatting.html#General-output-formatting
[2] http://www.opengroup.org/onlinepubs/009695399/utilities/ls.html
tried with: coreutils package 6.10-3ubuntu2
- ls and non-equivalence between -1 and single-column,
Radu Grigore <=