To avoid having to constantly redirect stderr, I usually exec it to a log file for the entire script at the start of the script. But, unintuitively, the "select" command writes its output to stderr instead of stdout, which prevents me from using that method.

Does anyone know why "select" writes to stderr instead of stdout?

Is there a way to have it use stdout instead?

To illustrate the problem, here's a small script. Uncomment the "exec" lines to see the behaviour.---- begin test script#!/bin/bash

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum