Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -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/ /' |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The literal ctrl-v tab in 's/\n/ /' is for portability since OS X's sed doesn't properly support \t tabs.

LC_ALL=C sort -t "." -k "1,1" -k "2,2n" -k "3,3n" -k "4,4n" |
cut -f 2
}


Expand Down