# HG changeset patch # User "Yann E. MORIN" # Date 1384546612 -3600 # Node ID 01ef2159b12a6491c3b7b9e312cf73e55bab08ea # Parent ff6b7a9bd370b73067042b1989489343d7491706 scripts/functions: use portable 'gzip -dc' 'zcat' on MacOS-X is broken (it is not gzip's zcat, but compres' zcat). Use 'gzip -dc' for portability, as suggested by Anthony. Reported-by: Fernando Ortiz Signed-off-by: "Yann E. MORIN" Cc: Anthony Foiani diff -r ff6b7a9bd370 -r 01ef2159b12a scripts/functions --- a/scripts/functions Fri Nov 15 18:58:42 2013 +0100 +++ b/scripts/functions Fri Nov 15 21:16:52 2013 +0100 @@ -1336,7 +1336,7 @@ CT_DoLog STATE " Restoring log file" exec >/dev/null case "${CT_DEBUG_CT_SAVE_STEPS_GZIP}" in - y) zcat "${state_dir}/log.gz" >"${tmp_log_file}";; + y) gzip -dc "${state_dir}/log.gz" >"${tmp_log_file}";; *) cat "${state_dir}/log" >"${tmp_log_file}";; esac cat "${state_dir}/tail.log" >>"${tmp_log_file}"