FriendlyNeighborhoodShane/MinMicroG-abuse-CI

I have a lot of problems

Closed this issue · 1 comments

I have a lot of problems
func() {
  file="$1";
  shift 1;
  {
    {
      "@" 2>&3 | cat;
    } 3>&1 1>&2 | tee "$file";
  } 3>&2 2>&1 1>&3;
}

Shorten this for me

func() {
  file="$1";
  shift 1;
  {
    "$@" 3>&1 1>&2 2>&3 | tee "$file";
  } 3>&1 1>&2 2>&3;
}