[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gNewSense-users] possible error in gen-kernel builder script

From: Kemmey, Whitney W CIV NSWCDD, K54
Subject: [gNewSense-users] possible error in gen-kernel builder script
Date: Fri, 14 Aug 2009 16:22:00 -0400

The gen-kernel builder script includes the following lines:
    # Changes so it'll compile without some modules
    for i in debian/d-i/modules/*; do
        sed -i 's/^\([[^ ?][^ ?]*\)$/\1 ?/' $i
Is the sed command correct?  I think this is meant to look for every line that contains no spaces or question marks and append " ?" to the end of the line.  My regular _expression_ skills aren't great, but I think it should be:
        sed -i 's/^\([^ ?][^ ?]*\)$/\1 ?/' $i
(Removed the first square bracket.)  Without this change, I think it's expecting the first character to be "[", "^", " ", or "?", which I think is incorrect.
Can anyone clarify?
Whit Kemmey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]