Re: [Gnewsense-dev] Re: [gNewSense-users] possible error in gen-kernel builder script

2009-08-20 Thread Tony
Actually, there is a difference between the regex as shown below and just removing the rogue [ Try it against the file /debian/d-i/modules/fat-modules 1) This option does *not* add a ? at the end of each line sed -i 's/^\([^ ?]+\)$/\1 ?/' $i 2) This option (the fixed version of the

Re: [Gnewsense-dev] Re: [gNewSense-users] possible error in gen-kernel b

2009-08-20 Thread Greenacre, Evan R CIV NSWCDD, K54
Sorry if this gets threaded wrong. But the SED script, the plus sign doesn't work unless its escaped: sed -i 's/^\([^ ?]\+\)$/\1 ?/' $i Enjoy Evan Greenacre NSWCDD, K54 540 653 1780 **NOTICE** If you are reading this notice, you are probably a beaucrat with entirely too much time on your

Re: [Gnewsense-dev] Re: [gNewSense-users] possible error in gen-kernel builder script

2009-08-20 Thread Sam Geeraerts
Tony schreef: 1) This option does *not* add a ? at the end of each line sed -i 's/^\([^ ?]+\)$/\1 ?/' $i 2) This option (the fixed version of the original) *does* add a question mark at the end of each line sed -i 's/^\([^ ?][^ ?]*\)$/\1 ?/' $i Can you explain what the difference is between

Re: [Gnewsense-dev] Re: [gNewSense-users] possible error in gen-kernel b

2009-08-20 Thread Sam Geeraerts
Greenacre, Evan R CIV NSWCDD, K54 schreef: Sorry if this gets threaded wrong. But the SED script, the plus sign doesn't work unless its escaped: sed -i 's/^\([^ ?]\+\)$/\1 ?/' $i Doesn't that make it a literal plus instead of a regex plus? ___

Re: [Gnewsense-dev] Re: [gNewSense-users] possible error in gen-kernel builder script

2009-08-20 Thread Brian Brazil
On Thu, Aug 20, 2009 at 9:27 PM, Sam Geeraertssam...@elmundolibre.be wrote: Tony schreef: 1) This option does *not* add a ? at the end of each line sed -i 's/^\([^ ?]+\)$/\1 ?/' $i 2) This option (the fixed version of the original) *does* add a question mark at the end of each line sed -i

Re: [Gnewsense-dev] Re: [gNewSense-users] possible error in gen-kernel builder script

2009-08-20 Thread Karl Goetz
On Fri, 21 Aug 2009 00:42:56 +0100 Brian Brazil brian.bra...@gmail.com wrote: On Thu, Aug 20, 2009 at 9:27 PM, Sam Geeraertssam...@elmundolibre.be wrote: Tony schreef: 2) This option (the fixed version of the original) *does* add a question mark at the end of each line sed -i 's/^\([^