On 14 August 2016 at 14:02, Ryan Schmidt wrote: > >> - echo "Installing $dependencies_count dependencies:" >> - echo "Installing $dependencies_count dependencies:" >> >> "$log_status_dependencies" >> - echo "$dependencies" | sed -E 's/^/ - /' >> - echo "$dependencies" | sed -E 's/^/ - /' >> "$log_status_dependencies" >> >> + text="Installing $dependencies_count dependencies of $option_port:" >> + echo "$text" >> + echo "$text" >> "$log_status_dependencies" >> + > > Rather than having to echo the same thing twice, you can use tee: > > echo "Installing $dependencies_count dependencies of $option_port:" | tee -a > "$log_status_dependencies" > > This will display the text on stdout and append it to the logfile.
Thank you for teaching me something new. Fixed in https://trac.macports.org/changeset/151517/ Mojca _______________________________________________ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev