On 12/04/11 11:57, Jim Meyering wrote:
   d=`unset TMPDIR; { mktemp -d -t -p "$destdir_" "$template_"; } 2>/dev/null` \

That should do the same without the cost of a sub-shell.

Or:
  d=`
    exec 2>/dev/null
    unset TMPDIR
    mktemp -d -t -p "$destdir_" "$template_"
  `

as we discovered recently, there are some commands (builtin's, okay)
where the output goes to stderr before it gets redirected.
So get your fingers in the habit of not using overly long lines
and redirecting junk before the command in question.  :)

Reply via email to