Revision 9829
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sh | ||
---|---|---|
803 | 803 |
alias file_size=\ |
804 | 804 |
"stat `case "$(uname)" in Darwin) echo -f %z;; *) echo --format=%s;; esac`" |
805 | 805 |
|
806 |
alias wildcard='shopt -s nullglob; echo' # usage: "$(wildcard glob...)" |
|
806 | 807 |
|
808 |
|
|
807 | 809 |
#### URLs |
808 | 810 |
|
809 | 811 |
localize_url() { test _"$1" = _"$(hostname -f)" || echo "$1"; } |
Also available in: Unified diff
lib/sh/util.sh: added wildcard alias, similar to make's $(wildcard) function