From: Kenneth Duda Date: Sun, 27 Sep 1998 20:22:12 +0000 (-0700) Subject: writemain dies when there are more than 4000 characters of extensions X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6062c5872245fd543e745c009f447b5dc5ad78c1;p=p5sagit%2Fp5-mst-13.2.git writemain dies when there are more than 4000 characters of extensions Message-Id: <199809280322.UAA01261@scorpion.cisco.com> p4raw-id: //depot/perl@1902 --- diff --git a/writemain.SH b/writemain.SH index c428383..025d954 100644 --- a/writemain.SH +++ b/writemain.SH @@ -37,7 +37,11 @@ $spitshell >>writemain <<'!NO!SUBS!' orig="$*" args='' : Remove any .a suffixes and any leading path components -for file in `echo $orig | sed 's/\.a//g'` ; do +for file in $orig ; do + case "$file" in + *.a) file=`echo $file | sed 's/\.a//g'` + ;; + esac case "$file" in ext/*) file=`echo $file | sed 's:ext/\(.*\)/[^/]*:\1:'` ;;