Summary: | /etc/init.d/modules from sys-apps/baselayout-1.9.4-r6 confused by comments. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Talamona Francesco <cancellettopugno> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | erlend.davidson |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | awk simple trick |
Description
Talamona Francesco
2005-04-10 01:38:19 UTC
Created attachment 55838 [details, diff]
awk simple trick
Typo: sorry, I was speaking about hashes "#", not slashes "/" *** Bug 88898 has been marked as a duplicate of this bug. *** what about this change instead: - sub(/^[[:space:]]*[^[:space:]]*[[:space:]]*/, "") + sub(/^[[:space:]]*[^[:space:]#]*[[:space:]]*/, "") does that work for you ? unfortunately this doesn't work for me, I've tried various combinations: modulename<tab>#<space>comment modulename<space>#<space>comment modulename<tab><space>#comment yeah, that doesnt work, but this does: sub(/^[[:space:]]*[^[:space:]]*[[:space:]]*/, "") + sub(/#.*$/, "") ARGS[COUNT] = $0 i'll add this to cvs Great! Thanks. |