Revision 10440
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
245 | 245 |
echo "$result" |
246 | 246 |
} |
247 | 247 |
|
248 |
sed_cmd="env LANG= sed -`case "$(uname)" in Darwin) echo E;; *) echo r;; esac`"
|
|
248 |
sed_cmd="env LANG= sed -`case "$(uname)" in Darwin) echo El;; *) echo ru;;esac`"
|
|
249 | 249 |
# LANG: avoid invalid UTF-8 "illegal byte sequence" errors when LANG=*.UTF-8 |
250 |
# -l: line buffered / -u: unbuffered |
|
250 | 251 |
alias sed="$sed_cmd" |
251 | 252 |
# can't be function because this causes segfault in redir() subshell when |
252 | 253 |
# used with make.sh make() filter |
Also available in: Unified diff
bugfix: lib/sh/util.sh: $sed_cmd: make output unbuffered, so that running e.g. bin/my2pg at the command line produces output as each line is read