Public bug reported:

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@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@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@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@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.

** Affects: coreutils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1280336

Title:
  CoreUtils 8.13 /bin/ls "-1" (single column) parameter apparently
  positional

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1280336/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to