in reply to Re: Sanity check: Tiny wrapper script for /bin/mail
in thread Sanity check: Tiny wrapper script for /bin/mail

I thought the same, but the idea is to see if input is available on STDIN, not @ARGV :-).

Replies are listed 'Best First'.
Re^3: Sanity check: Tiny wrapper script for /bin/mail
by RichardK (Parson) on Nov 29, 2013 at 16:00 UTC
    Doh! Well spotted -- I completely missed that, sorry for the noise.

      Not to worry, I tried quite a few... less thought out approaches myself. My wrapper script could ofcourse be golfed down to a completely unreadable oneliner but I decided to go for readability instead. My co-workers are creative bastards and would certainly come up with a way to get back at me. :-)

      -- FloydATC

      Time flies when you don't know what you're doing