diff options
author | rillig <rillig> | 2006-10-21 10:37:48 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-10-21 10:37:48 +0000 |
commit | 0582242fe5b138461c2a22044b74b73de1a40f2b (patch) | |
tree | 586ffc76762f23d553cda8634d6d3d503ff7e05f /mk | |
parent | b78b3bc53a5ab71ae6221d488292263d0cc1bbde (diff) | |
download | pkgsrc-0582242fe5b138461c2a22044b74b73de1a40f2b.tar.gz |
Documented a not-so-easily-fixed bug that occurs when stripping comments
off a line.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/configure/check-portability.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/configure/check-portability.sh b/mk/configure/check-portability.sh index 59c2ea785ae..dd1d2c6dc0b 100644 --- a/mk/configure/check-portability.sh +++ b/mk/configure/check-portability.sh @@ -1,4 +1,4 @@ -# $NetBSD: check-portability.sh,v 1.2 2006/10/12 20:36:34 rillig Exp $ +# $NetBSD: check-portability.sh,v 1.3 2006/10/21 10:37:48 rillig Exp $ # # This program checks the extracted files for portability issues that # are likely to result in false assumptions by the package. @@ -50,6 +50,8 @@ check_shell() { # a safe usage of $RANDOM, it will pass the test. # Strip comments. + # Note: this has the side-effect that the # in $# is also + # regarded as a comment. line="${line%%#*}" # Check for $RANDOM, which is specific to ksh and bash. |