[16632] in Kerberos-V5-bugs
[krbdev.mit.edu #8955] nonportable contsruct in shell script
daemon@ATHENA.MIT.EDU (Greg Troxel via RT)
Thu Oct 8 02:14:59 2020
From: "Greg Troxel via RT" <rt-comment@krbdev.mit.edu>
In-Reply-To: <rmilfghmut5.fsf@s1.lexort.com>
Message-ID: <rt-4.4.4-4063-1602137672-120.8955-4-0@mit.edu>
To: "AdminCc of krbdev.mit.edu Ticket #8955":;
Content-Type: multipart/mixed; boundary="----------=_1602137672-4063-0"
Date: Thu, 08 Oct 2020 02:14:32 -0400
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Reply-To: rt-comment@krbdev.mit.edu
Errors-To: krb5-bugs-bounces@mit.edu
------------=_1602137672-4063-0
Content-Type: text/plain; charset="utf-8"
Thu Oct 08 02:14:32 2020: Request 8955 was acted upon.
Transaction: Ticket created by gdt@lexort.com
Queue: krb5
Subject: nonportable contsruct in shell script
Owner: Nobody
Requestors: gdt@lexort.com
Status: new
Ticket <URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=8955 >
I help maintain the mit-krb5 package for pgksrc, used on NetBSD.
We have applied the following patch because test_ccapi.sh is a shell
script (with #!/bin/sh) but contains code not permitted by the POSIX
shell standard. (The syntax "[[" is a bash extension.)
Also, my editor appears to have added a missing final newline; that's a
bug in the patch, but something that would be nice to fix too.
Thanks,
Greg
$NetBSD: patch-ccapi_test_test__ccapi.sh,v 1.1 2020/10/05 23:24:45 gdt Exp $
--- ccapi/test/test_ccapi.sh.orig 2020-02-12 17:21:58.000000000 +0000
+++ ccapi/test/test_ccapi.sh
@@ -6,7 +6,7 @@ TEST_DIR="tests"
failure_count=0
function run_test {
- if [[ -e $TEST_DIR/$1 ]]; then
+ if [ -e "$TEST_DIR/$1" ]; then
./$TEST_DIR/$1
failure_count=`expr $failure_count + $?`
fi
@@ -73,4 +73,4 @@ run_test test_cc_get_NC_info
printf "\nFinished testing CCAPI. $failure_count failures in total.\n"
-exit 0
\ No newline at end of file
+exit 0
------------=_1602137672-4063-0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Disposition: attachment; filename="signature.asc"
Content-Transfer-Encoding: base64
RT-Attachment: 8955/97456/24075
LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlGMEVBUkVDQUIwV0lR
Uzd3eUFqV2lsUXdWSEc5VnNmMm5yb0NZN1dEZ1VDWDM1YmhnQUtDUkFmMm5y
b0NZN1cKRHBCZUFKOWVUanI3dW00WjlNMmo5cGJlcWdJZUgyS1dHd0NlTG1z
ZUt3bFNVOXNYVGlITGR2dUpXN0E3eVJrPQo9MDBlNQotLS0tLUVORCBQR1Ag
U0lHTkFUVVJFLS0tLS0=
------------=_1602137672-4063-0
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs
------------=_1602137672-4063-0--