Skip to content

Commit

Permalink
[Fix] remove the need for sed -E
Browse files Browse the repository at this point in the history
Fixes #1126
  • Loading branch information
ljharb committed Jun 28, 2016
1 parent 73aa35f commit c4be39b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -807,10 +807,10 @@ nvm_ls() {
s#^v#${NVM_NODE_PREFIX}/v#;
\#${SEARCH_PATTERN}# !d;
" \
| command sed -E "s#^([^/]+)/(.*)\$#\2.\1#;" \
| command sed "s#^\([^/]\{1,\}\)/\(.*\)\$#\2.\1#;" \
| command sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n \
| command sed -E "
s#(.*)\.([^\.]+)\$#\2-\1#;
| command sed "
s#\(.*\)\.\([^\.]\{1,\}\)\$#\2-\1#;
s#^${NVM_NODE_PREFIX}-##;
" \
)"
Expand Down

0 comments on commit c4be39b

Please sign in to comment.