Project

General

Profile

« Previous | Next » 

Revision 11358

lib/runscripts/util.run: to_top_file: added function for this (in addition to alias), so that this can be run from sudo in a wrap_fn command

View differences:

lib/runscripts/util.run
53 53
wrap_fn="$top_script" # usage: sudo "$wrap_fn" fn ...
54 54

  
55 55
# usage: to_top_file cmd...
56
alias to_top_file='stdout="$top_file" to_file ' #last sp alias-expands next word
56
function to_top_file() { echo_func; stdout="$top_file" to_file; }
57
alias to_top_file='"to_top_file" ' # last space alias-expands next word
57 58

  
58 59
,() # usage: .../run , cmd1 cmd2 ... (like `make cmd1 cmd2 ...`)
59 60
# treats each of the command-line args as commands the way make does

Also available in: Unified diff