On Monday 2011-09-26 19:03, Frederic Crozat wrote:
sysv_service=`echo $service | sed -e 's/\\.[a-z]*//g'` \
What is it that is being stripped here? \.[a-z]* looks like it can wreak havoc all over the string. I guess something like this goes faster:
sysv_service="$service"; sysv_service="${service%.service}"; sysv_service="${service%.unit}";
Except I don't want to list all possible extensions units might have.
Well it does not just strip extensions, it strips everything after a dot: java1.6start.service Well, might just as well do "${x%.*}";
if not, $service should at least be quoted.
Not sure I'm following you here..
- sysv_service=`echo $service | sed -e 's/\\.[a-z]*//g'` \ + sysv_service=$(echo "$service" | sed -e 's/\\.[a-z]*//g') \
PS: no need to CC me..
standard MUA procedure for lists. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org