selecting modules for kernel compilation automatically

2019-10-12 Thread Mischa Baars
Hi, Can someone please tell me why this does work: for i in $(find /lib/modules/5.3.0-next-20190924/ -type f | grep scsi); do echo $(basename $i .ko.xz); done; While this doesn't: for i in $(find /lib/modules/5.3.0-next-20190924/ -type f | grep scsi); do grep $(basename $i .ko.xz) /proc/modu

Re: selecting modules for kernel compilation automatically

2019-10-12 Thread Mischa Baars
On Sat, 2019-10-12 at 13:50 +0200, Mischa Baars wrote: > Hi, > > Can someone please tell me why this does work: > > > for i in $(find /lib/modules/5.3.0-next-20190924/ -type f | grep scsi); do > echo $(basename $i .ko.xz); done; > > While this doesn't: > > for i in $(find /lib/modules/5.3.0-n

Command grouping

2019-10-12 Thread Mischa Baars
Hi, Perhaps to better have a look at this mail, than the previous mail. In trying to group commands, in this case compiler commands, I found some peculiarities while trying different combinations of the 'Internal Field Separator' and the 'Parameter Expansion' operator ${parameter@P}. Perhaps s

Re: Command grouping

2019-10-12 Thread Chet Ramey
On 10/12/19 9:02 AM, Mischa Baars wrote: > Hi, > > Perhaps to better have a look at this mail, than the previous mail. > > In trying to group commands, in this case compiler commands, I found some > peculiarities while trying different combinations of the 'Internal Field > Separator' > and the