Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 342849

Summary: grep line in net-p2p/transmission init file doesn't work for all cases
Product: Gentoo Linux Reporter: Sok Ann Yap <sokann>
Component: New packagesAssignee: Peter Volkov (RETIRED) <pva>
Status: RESOLVED FIXED    
Severity: normal CC: net-p2p
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: A diff for the init file

Description Sok Ann Yap 2010-10-27 00:45:43 UTC
If TRANSMISSION_OPTIONS starts with --config-dir in /etc/conf.d/transmission-daemon, e.g.

TRANSMISSION_OPTIONS="--config-dir /data/transmission"

then the grep line in /etc/init.d/transmission-daemon doesn't work, because it tries to find a match with a leading space.

Reproducible: Always
Comment 1 Sok Ann Yap 2010-10-27 00:47:52 UTC
Created attachment 252127 [details, diff]
A diff for the init file

The grep line works for me after applying the diff
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-11-10 12:52:33 UTC
Thank you for report Sok. Fixed in 2.11-r2.
Comment 3 Sok Ann Yap 2010-11-11 10:55:26 UTC
The lowercase \b doesn't really work for me, can you check again? Thanks.
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2010-11-11 16:28:27 UTC
(In reply to comment #3)
> The lowercase \b doesn't really work for me, can you check again? Thanks.

Strange I'm not sure how it worked. Replaced \b with \B. Should work now. Thank you again.