[Bug 1280336] Re: CoreUtils 8.13 /bin/ls "-1" (single column) parameter apparently positional
C de-Avillez
hggdh2 at ubuntu.com
Wed Apr 30 16:14:17 UTC 2014
Thank you for opening this bug and helping make Ubuntu better.
I cannot see this being unexpected behaviour -- you are giving out
conflicting formatting options.
>From the info pages for ls:
`-1'
`--format=single-column'
List one file per line. This is the default for `ls' when standard
output is not a terminal.
`-x'
`--format=across'
`--format=horizontal'
List the files in columns, sorted horizontally.
What ls is doing is respecting the *last* format you asked for. The most
I can see happening is there could be a warning that '-1´ conflicts with
'-x', and the last of these two options given will be used.
In other words: 'ls -1 -x' does not make sense (and is equivalent to 'ls
-x').
I am tending to close this bug INVALID unless you comment on it.
** Changed in: coreutils (Ubuntu)
Importance: Undecided => Low
** Changed in: coreutils (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/1280336
Title:
CoreUtils 8.13 /bin/ls "-1" (single column) parameter apparently
positional
Status in “coreutils” package in Ubuntu:
Incomplete
Bug description:
Hello,
On Ubuntu 12.04.3LTS (Precise Pangolin), using the stock "/bin/ls" (list directory) command, the location of the "-1" (a hyphen followed by the digit "one") parameter is apparently position dependent.
For example, this command generates unexpectedly incorrect output (leading periods used only for indentation purposes):
.. testuser at testhost:~/.unison$ ls -1 -x
.. Audiobooks.prf Configuration.prf default.prf Documents.prf Downloads.prf
.. Ebooks.prf Emulation.prf Music.prf Pictures.prf Podcasts.prf
.. Projects.prf Templates.prf Videos.prf
.. testuser at testhost:~/.unison$
(Spacing may not be accurately represented in a web browser; open attached text file in a text editor with a fixed-width font for an accurate example.)
While this command produces the correct output (leading periods used only for indentation purposes):
.. testuser at testhost:~/.unison$ ls -x -1
.. Audiobooks.prf
.. Configuration.prf
.. default.prf
.. Documents.prf
.. Downloads.prf
.. Ebooks.prf
.. Emulation.prf
.. Music.prf
.. Pictures.prf
.. Podcasts.prf
.. Projects.prf
.. Templates.prf
.. Videos.prf
.. testuser at testhost:~/.unison$
(Spacing may not be accurately represented in a web browser; open attached text file in a text editor with a fixed-width font for an accurate example.)
This behaviour is unexpected and violates non-positional parameter guidelines.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1280336/+subscriptions
More information about the foundations-bugs
mailing list