Fix various uses of the GNUism of allowing backslash escapes in the second half of a sed regexp substitution

darcs-hash:20060302112808-ac50b-46cdf8e99f8f6e8cab0d54f32cf4e4d309775aa1.gz
This commit is contained in:
axel
2006-03-02 21:28:08 +10:00
parent d1bb30afae
commit 3b6d8756ea
9 changed files with 15 additions and 15 deletions

View File

@@ -1,8 +1,8 @@
function __fish_complete_pids -d "Print a list of process identifiers along with brief descriptions"
# This may be a bit slower, but it's nice - having the tty displayed is really handy
ps --no-heading -o pid,comm,tty --ppid %self -N | sed -r 's/ *([0-9]+) +([^ ].*[^ ]|[^ ]) +([^ ]+)$/\1\t\2 [\3]/' ^/dev/null
ps --no-heading -o pid,comm,tty --ppid %self -N | sed -r 's/ *([0-9]+) +([^ ].*[^ ]|[^ ]) +([^ ]+)$/\1'\t'\2 [\3]/' ^/dev/null
# If the above is too slow, this is faster but a little less useful
# pgrep -l -v -P %self | sed 's/ /\t/'
# pgrep -l -v -P %self | sed 's/ /'\t'/'
end