Project

General

Profile

« Previous | Next » 

Revision 13266

bugfix: lib/sh/util.sh: commands: `type` calls: need to account for the fact that any alias is already expanded

View differences:

trunk/lib/sh/util.sh
310 310

  
311 311
#### commands
312 312

  
313
type() { (unalias "$1"; self_builtin "$1") || return; } # alias already expanded
314

  
313 315
is_callable() { type -t "$1" >/dev/null; }
314 316

  
315 317
is_extern() { test "$(type -t "$1")" = file; }

Also available in: Unified diff