screenFetch icon indicating copy to clipboard operation
screenFetch copied to clipboard

Incorrect parsing of make.conf

Open Meriipu opened this issue 7 years ago • 2 comments

Commented lines at the end of lines without a trailing space are parsed incorrectly and lead to weird outtput:

VIDEO_CARDS="nvidia"# -intel -i965"

$ screenfetch
/etc/portage/make.conf: line 8: -intel: command not found
/etc/portage/make.conf: line 16: /usr/local/portage/bazaar/
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST=x86_64-pc-linux-gnu
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

...

Meriipu avatar Apr 19 '17 20:04 Meriipu

Show me the lines that parse make.conf. make.conf must not be parsed but imported . /etc/portage/make.conf Then you should parse VIDEO_CARDS

DmitryHetman avatar Apr 29 '17 13:04 DmitryHetman

what

are you arguing semantics or

Meriipu avatar Apr 29 '17 19:04 Meriipu