Subject: bug#26228: ls bug

From: Reuti <[email-masked]>
Date: Thu, 23 Mar 2017 21:32:31 +0100

Am 23.03.2017 um 20:57 schrieb Massimo Masotti:

> Hi,
> I have 12 pieces in my disk, from sda1 to sda12.
> 
> This is the expected behavior:
> 
> [root@max ~]# ls -l /dev/sda[1-9]
> brw-rw---- 1 root disk 8, 1 Mar 23 14:39 /dev/sda1
> brw-rw---- 1 root disk 8, 2 Mar 23 14:39 /dev/sda2
> brw-rw---- 1 root disk 8, 3 Mar 23 14:39 /dev/sda3
> brw-rw---- 1 root disk 8, 4 Mar 23 14:39 /dev/sda4
> brw-rw---- 1 root disk 8, 5 Mar 23 14:39 /dev/sda5
> brw-rw---- 1 root disk 8, 6 Mar 23 14:39 /dev/sda6
> brw-rw---- 1 root disk 8, 7 Mar 23 14:39 /dev/sda7
> brw-rw---- 1 root disk 8, 8 Mar 23 14:39 /dev/sda8
> brw-rw---- 1 root disk 8, 9 Mar 23 14:39 /dev/sda9
> 
> The following instead seems to me a bug:
> 
> [root@max ~]# ls -l /dev/sda[1-12]
> brw-rw---- 1 root disk 8, 1 Mar 23 14:39 /dev/sda1
> brw-rw---- 1 root disk 8, 2 Mar 23 14:39 /dev/sda2

I read this as range 1-1 and single character 2.

This should work:

ls -l /dev/sda{1-12}

- -- Reuti