Project

General

Profile

« Previous | Next » 

Revision 9249

*{.sh,run}: don't use aliases unless it's actually necessary (e.g. to define a var in the calling function, or to alias-expand the next word)

View differences:

util.sh
354 354
### external command input/output
355 355

  
356 356
# usage: cmd1 | { pipe_delay; cmd2; }
357
alias pipe_delay='sleep 0.1' # s; display after leading output of cmd1
357
pipe_delay () { sleep 0.1; } # s; display after leading output of cmd1
358 358

  
359 359
fi # load new aliases
360 360
if self_being_included; then
......
371 371
	fi
372 372
}
373 373

  
374
alias echo_stdout='echo_stdin' # usage: cmd|echo_stdout
374
echo_stdout () { echo_stdin; } # usage: cmd|echo_stdout
375 375

  
376 376
fi # load new aliases
377 377
if self_being_included; then

Also available in: Unified diff