Project

General

Profile

« Previous | Next » 

Revision 9747

lib/sh/util.sh: added bg_cmd() and helpers log_bg(), log_last_bg()

View differences:

lib/sh/util.sh
734 734
}
735 735
alias to_file='"to_file" ' # last space alias-expands next word
736 736

  
737
log_bg() { symbol='&' log_custom "$@"; }
738

  
739
log_last_bg() { log_bg '$!='"$!"; }
740

  
741
function bg_cmd() { echo_func; "$@" & log_last_bg; } # usage: bg_cmd cmd...
742
alias bg_cmd='"bg_cmd" ' # last space alias-expands next word
743

  
737 744
run_args_cmd() # runs the command line args command
738 745
{
739 746
	eval set -- "$(reverse "${BASH_ARGV[@]}")"

Also available in: Unified diff