Shell loop bug?

Alexander Shiyan shc_work at mail.ru
Tue Nov 17 02:24:11 PST 2015


Hello.

barebox@/ # for i in /dev/* ; do echo $i; done
/dev/flash0
/dev/full
/dev/m25p0
/dev/m25p1
/dev/mem
/dev/null
/dev/ram0
/dev/self0
/dev/serial1
/dev/zero

barebox@/ # for i in /dev/*1 ; do echo $i; done
/dev/m25p1
/dev/serial1

barebox@/ # for i in /dev/*2 ; do echo $i; done
/dev/*2
     ^^^^^^^^ Is this correct?

Thanks.
---


More information about the barebox mailing list