#169960 at: Uncondition /bin/sh warning

Package:
at
Source:
at
Description:
Delayed job execution and batch processing
Submitter:
Date:
2010-01-04 16:13:55 UTC
Severity:
wishlist
#169960#5
Date:
2002-11-21 04:19:10 UTC
From:
To:
at(1) always issues the warning

warning: commands will be executed using /bin/sh

on stderr.  This makes it more difficult to find real errors when at
is being called from a script.  Please add an option that disables this
warning.
--- Ignoring conffile /etc/at.deny (not world readable)

#169960#10
Date:
2005-09-29 18:54:01 UTC
From:
To:
I first planned to submit a bug for too verbose at command, but then I
found this old one.  I added a new flag '-s' for 'silent' that inhibits
POSIX2-required warning of using /bin/sh and printing of time.

Other alternative would be defining some environment variable like
'SHUT_UP_AT_I_KNOW_YOU_USE_BIN_SH_THANKS' :-) and check for that.

if (getenv("SHUT_UP_AT_I_KNOW_YOU_USE_BIN_SH_THANKS"))
  silent = 1;

instead of that fragment in getopt-switch.