Revision 10213
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
246 | 246 |
} |
247 | 247 |
|
248 | 248 |
sed_cmd="sed -`case "$(uname)" in Darwin) echo E;; *) echo r;; esac`" |
249 |
alias sed="$sed_cmd" |
|
249 |
alias sed_cmd="$sed_cmd"
|
|
250 | 250 |
|
251 | 251 |
fi # load new aliases |
252 | 252 |
if self_being_included; then |
253 | 253 |
|
254 |
sed() { sed_cmd "$@"; } |
|
255 |
|
|
254 | 256 |
rtrim() { log+ 3; sed 's/[[:space:]]+$//' <<<"$1"; } |
255 | 257 |
|
256 | 258 |
|
Also available in: Unified diff
lib/sh/util.sh: sed: use function instead of alias so that env can be set up before calling sed