ps_f 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/ps_f +5 -2
- metadata +3 -3
data/bin/ps_f
CHANGED
@@ -48,8 +48,11 @@ def asm(tree, roots, pre_prefix, cmd_list, basename_only)
|
|
48
48
|
pid, command = pid_cmd
|
49
49
|
|
50
50
|
if basename_only
|
51
|
-
head, tail = command.split(
|
52
|
-
|
51
|
+
head, tail = command.split(/ -/, 2)
|
52
|
+
pos = head.rindex('/')
|
53
|
+
pos = pos ? pos + 1 : 0
|
54
|
+
command = head[pos..-1]
|
55
|
+
command += ' -' + tail if tail
|
53
56
|
end
|
54
57
|
|
55
58
|
cmd_list << [pid, pre_prefix + ' \_ ' + command]
|
metadata
CHANGED