[exim-cvs] Testsuite: more portable implementation of "showe…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Exim Git Commits Mailing List
Date:  
À: exim-cvs
Sujet: [exim-cvs] Testsuite: more portable implementation of "showenv"
Gitweb: http://git.exim.org/exim.git/commitdiff/b9c5223b77400cec8c44a8972a238f9cde82f0fc
Commit:     b9c5223b77400cec8c44a8972a238f9cde82f0fc
Parent:     8334b9b803393346e08706f7a5d435de510d3172
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Fri Oct 24 11:12:20 2014 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri Oct 24 11:12:20 2014 +0100


    Testsuite: more portable implementation of "showenv"


    At least one Solaris installation seems not to have "whoami"
---
 test/aux-fixed/showenv |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/test/aux-fixed/showenv b/test/aux-fixed/showenv
index a49833a..5d9ef8f 100755
--- a/test/aux-fixed/showenv
+++ b/test/aux-fixed/showenv
@@ -3,8 +3,10 @@
# This script outputs certain information about the environment, for use when
# testing pipe transports.

+name=`whoami 2>/dev/null` || name=`who . . | awk '{print $1}'`
+
echo Test pipe script
-echo Running as: `whoami`
+echo Running as: $name
echo ------------------
echo Args:
while [ "$1" != "" ]; do