Summary: | runscript misquotes variables from /etc/conf.d | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Hugo Mildenberger <Hugo.Mildenberger> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED INVALID | ||
Severity: | major | CC: | roy |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
example file to reproduce
eval arg demonstration |
Description
Hugo Mildenberger
2008-04-30 11:55:33 UTC
Created attachment 151410 [details]
example file to reproduce
Any reason why you can't use prefix the start-stop-daemon command with eval? (In reply to comment #2) > Any reason why you can't use prefix the start-stop-daemon command with eval? > No, Roy, arguable there is no ethically justifiable reason not to use eval. Thank you very much for your accurate response. Prefixing with eval solved the problem quickly. However, could you explain why eval is needed with runscript, but not with pure bash? Created attachment 151504 [details]
eval arg demonstration
Try running this script to see why you need to use eval.
It's not runscript specific at all :)
(In reply to comment #4) > Try running this script to see why you need to use eval. > It's not runscript specific at all :) True. Lesson learned: besides eval, nobody respects quotes. (In reply to comment #5) > (In reply to comment #4) > > Try running this script to see why you need to use eval. > > It's not runscript specific at all :) > > True. Lesson learned: besides eval, nobody respects quotes. You mean quotes in variables :) You may wish to close this bug now ;) (In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > > Try running this script to see why you need to use eval. > > > It's not runscript specific at all :) > > > > True. Lesson learned: besides eval, nobody respects quotes. > > You mean quotes in variables :) So you mean I only meant variables? I wish real live had an eval program too. > You may wish to close this bug now ;) For sure. After having read your post at http://roy.marples.name/node/389 I will close it even more quickly. Thank you very much for the hints and for the insight you taught me, too. |