I can't reproduce the original issue. The old code: ps axo command | sed -ne "1d; s/^\[\?\([^-][^] ]*\).*$/\1/p" | sed -e "s/.*\///" outputs dbus-daemon correctly.
Could someone post the 'ps axo command' output from Debian? Can anyone actually confirm the original bug? By the way, both the old and new code get some commands wrong (noticed those '0' and '1' one the completion?). Something like this might work better: ps axo command |sed -e "1d; s: .*$::g; s:^/.*/::g; s/:$//g; s:^-::g; s:^\[::g; s:\]$::g; s:/.*::g"
signature.asc
Description: Esta parte del mensaje está firmada digitalmente