Merge pull request #174 from bdeak/fix_numeric_sorting

fix numeric sorting
This commit is contained in:
Ashley Penney 2014-05-01 16:10:55 -04:00
commit 6a3bdd03fa

View file

@ -117,9 +117,9 @@ fi
IFS_BACKUP=$IFS
IFS='
'
for fragfile in `find fragments/ -type f -follow | LC_ALL=C sort ${SORTARG}`
for fragfile in `find fragments/ -type f -follow -print0 | xargs -0 -n1 basename | LC_ALL=C sort ${SORTARG}`
do
cat $fragfile >> "fragments.concat"
cat "fragments/$fragfile" >> "fragments.concat"
# Handle newlines.
if [ "x${ENSURE_NEWLINE}" != "x" ]; then
echo >> "fragments.concat"