Bug#593996: acpi-support: resource waste; unnecessary forks and pipes

2010-11-15 Thread Michael Meskes
On Sun, Aug 22, 2010 at 11:39:02PM +0200, Cristian Ionescu-Idbohrn wrote: This is one example: lib/device-funcs:6:bios_version=`cat /sys/class/dmi/id/bios_version|sed -e 's/ *$//'` Save a fork and a pipe by simply: bios_version=$(sed -re 's/[[:blank:]]+*$//'

Bug#593996: acpi-support: resource waste; unnecessary forks and pipes

2010-11-15 Thread Cristian Ionescu-Idbohrn
On Mon, 15 Nov 2010, Michael Meskes wrote: On Sun, Aug 22, 2010 at 11:39:02PM +0200, Cristian Ionescu-Idbohrn wrote: This is one example: lib/device-funcs:6:bios_version=`cat /sys/class/dmi/id/bios_version|sed -e 's/ *$//'` Save a fork and a pipe by simply:

Bug#593996: [Pkg-acpi-devel] Bug#593996: acpi-support: resource waste; unnecessary forks and pipes

2010-11-15 Thread Michael Meskes
Is the intention to remove horisontal whitespace occurence, at the enf-of-line, or something else? I have no idea to be honest, you'd better ask upstream for this kind of detail. That would be quite a few patches :) Or just one with all the changes. Lots of scripts. Any particulary

Bug#593996: acpi-support: resource waste; unnecessary forks and pipes

2010-08-22 Thread Cristian Ionescu-Idbohrn
Package: acpi-support Version: 0.137-5 Severity: normal This is one example: lib/device-funcs:6:bios_version=`cat /sys/class/dmi/id/bios_version|sed -e 's/ *$//'` Save a fork and a pipe by simply: bios_version=$(sed -re 's/[[:blank:]]+*$//' /sys/class/dmi/id/bios_version) This is