comparison tests/hostname-stdin/test.tpl @ 340:60bb2dbe2866 0.3.3

In the tests: replaced logname(1) with $LOGNAME Because logname(1) may not work if it has no controlling terminal. See: http://aplawrence.com/cgi-bin/printer.pl?arg=/Forum/TonyLawrence8.html Be it that reason or not, it didn't work on Crux, but $LOGNAME is set.
author markus schnalke <meillo@marmaro.de>
date Wed, 31 Aug 2011 09:14:38 +0200
parents 08e258ed1ebc
children
comparison
equal deleted inserted replaced
339:e6864daf89f4 340:60bb2dbe2866
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # path to the masqmail executable 3 # path to the masqmail executable
4 mm_bin=../../src/masqmail 4 mm_bin=../../src/masqmail
5 5
6 hfrom="\"Fritz Meier\" <`logname`@RECV_HOST>" 6 hfrom="\"Fritz Meier\" <$LOGNAME@RECV_HOST>"
7 hto="$hfrom" 7 hto="$hfrom"
8 to=`logname`@RECV_HOST 8 to=$LOGNAME@RECV_HOST
9 hsubject="Masqmail test: hostname-stdin" 9 hsubject="Masqmail test: hostname-stdin"
10 10
11 11
12 # Testing with rcpt on cmd line 12 # Testing with rcpt on cmd line
13 # (dot does end) 13 # (dot does end)