summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorvd <vd@FreeBSD.org>2007-03-28 20:39:18 +0000
committervd <vd@FreeBSD.org>2007-03-28 20:39:18 +0000
commitaf00bc3bbc0bc2247f5fa04daccc170ccdf97e5a (patch)
treed26f47087a886153d457281a442a8de0897bf574 /Tools/scripts
parentdcff8fee3a945344b6ddd13f955452e8a5de8588 (diff)
downloadFreeBSD-ports-af00bc3bbc0bc2247f5fa04daccc170ccdf97e5a.zip
FreeBSD-ports-af00bc3bbc0bc2247f5fa04daccc170ccdf97e5a.tar.gz
Use echo instead of printf because external commands cannot be executed
with very long arguments (>400000 characters). The problem reveals for example if /usr/ports/Tools/scripts/rmport -d print/ghostscript-gnu is executed - it does printf "%s\n" "... 451109 chars ..." Spotted by: rafan
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/rmport6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport
index e57cd27..4dc26ac 100755
--- a/Tools/scripts/rmport
+++ b/Tools/scripts/rmport
@@ -155,7 +155,7 @@ check_dep_core()
deps=`grep -E "${pkgname}" ${INDEX} |grep -vE "^(${rmpkgs})" || :`
if [ -n "${deps}" ] ; then
log "${catport}: some port(s) depend on ${pkgname}:"
- printf "%s\n" "${deps}" >&2
+ echo "${deps}" >&2
err=1
fi
@@ -170,7 +170,7 @@ check_dep_core()
echo >&2
fi
log "${catport}: some Makefiles mention ${portdir_grep}:"
- printf "%s\n" "${r}" >&2
+ echo "${r}" >&2
err=1
fi
@@ -194,7 +194,7 @@ check_dep()
break
fi
- printf "%s" "${res}" |${PAGER:-less}
+ echo "${res}" |${PAGER:-less}
if [ ${persist} -eq 0 ] ; then
break
OpenPOWER on IntegriCloud