Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172070 - app-portage/gentoolkit - euse processing comments
Summary: app-portage/gentoolkit - euse processing comments
Status: VERIFIED DUPLICATE of bug 163561
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-24 17:08 UTC by Caleb Cushing
Modified: 2007-03-24 17:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
make.conf (make.conf,1.02 KB, text/plain)
2007-03-24 17:10 UTC, Caleb Cushing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Cushing 2007-03-24 17:08:00 UTC
2 examples

euse -i xattr
/etc/make.conf: line 16: unexpected EOF while looking for matching `"'
/etc/make.conf: line 18: syntax error: unexpected end of file
/etc/make.conf: line 16: unexpected EOF while looking for matching `"'
/etc/make.conf: line 18: syntax error: unexpected end of file
/etc/make.conf: line 16: unexpected EOF while looking for matching `"'
/etc/make.conf: line 18: syntax error: unexpected end of file

another one
/etc/make.conf: line 16: unexpected EOF while looking for matching `"'
/etc/make.conf: line 18: syntax error: unexpected end of file
/etc/make.conf: line 16: unexpected EOF while looking for matching `"'
/etc/make.conf: line 18: syntax error: unexpected end of file
/etc/make.conf: line 16: unexpected EOF while looking for matching `"'
/etc/make.conf: line 18: syntax error: unexpected end of file


Reproducible: Always



Expected Results:  
euse shouldn't read comments.
Comment 1 Caleb Cushing 2007-03-24 17:10:55 UTC
Created attachment 114262 [details]
make.conf

the problem is on line 5...

looks like I duped my example twice the second is actually
/etc/make.conf: line 5: userfetch: command not found
/etc/make.conf: line 5: userfetch: command not found
/etc/make.conf: line 5: userfetch: command not found

This one occurs if I remove the quote on the end of line 5
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-24 17:12:24 UTC
Well, your line 5 in invalid. It's not a comment, you are missing a space there before #.
Comment 3 Caleb Cushing 2007-03-24 17:37:47 UTC
from the bash info page

File: bash.info,  Node: Comments,  Prev: Quoting,  Up: Shell Syntax

3.1.3 Comments
--------------

In a non-interactive shell, or an interactive shell in which the
`interactive_comments' option to the `shopt' builtin is enabled (*note
Bash Builtins::), a word beginning with `#' causes that word and all
remaining characters on that line to be ignored.  An interactive shell
without the `interactive_comments' option enabled does not allow
comments.  The `interactive_comments' option is on by default in
interactive shells.  *Note Interactive Shells::, for a description of
what makes a shell interactive.


where in the hell have you gotten your info from jakub? in 3 years I've never read anything about what your talking about. comments start with the # at the # regardless of where they are in the line. I think this is a problem with you euse progam. correct me if I'm wrong but make.conf is in standard shell and not another program. the only exception I'm aware of is the first line of a file. if it contains #!/path/to/interpreter 
Comment 4 Caleb Cushing 2007-03-24 17:41:16 UTC
^^^
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-03-24 17:46:33 UTC
> a word beginning with `#' causes that word...

That word is *not* beginning with #, the whole distlocks"# thing is one word. You need either a whitespace or newline there.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-03-24 17:47:23 UTC
Plus this is a duplicate anyway.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-03-24 17:47:39 UTC

*** This bug has been marked as a duplicate of bug 163561 ***