diff --git a/bin/ruby-build b/bin/ruby-build index 3bc6cb2fc7..5a0cb9f62d 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -870,7 +870,9 @@ list_definitions() { { for definition in "${RUBY_BUILD_ROOT}/share/ruby-build/"*; do echo "${definition##*/}" done - } | sort + } | sed -e "h" -e 's/[+-]/./g' -e "G" -e 's/\n/ /' | + LC_ALL=C sort -t "." -k "1,1" -k "2,2n" -k "3,3n" -k "4,4n" | + cut -f 2 }