posix friendly

This commit is contained in:
ville rantanen
2017-09-04 08:44:42 +03:00
parent 73654746d1
commit 7c6f909165

View File

@@ -51,8 +51,8 @@ colMenu=$( _qCol z y )
colWarn=$( _qCol z R )
function fpgrep() {
pgrep -x -u $UID "$@" | xargs --no-run-if-empty ps -o pid,bsdstart,args;
test ${PIPESTATUS[0]} -ne 0 && echo '----'
[[ -z $( pgrep -x -u $UID "$@" ) ]] && { echo '----'; return; }
pgrep -x -u $UID "$@" | xargs ps -o pid,bsdstart,args
}
function get_id() {