[Fix] remove the need for `sed -E`

Fixes #1126
Jordan Harband 2016-06-27 21:50:45 -07:00
parent 73aa35f508
commit c4be39b8be
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 3 additions and 3 deletions

6
nvm.sh
View File

@ -807,10 +807,10 @@ nvm_ls() {
s#^v#${NVM_NODE_PREFIX}/v#; s#^v#${NVM_NODE_PREFIX}/v#;
\#${SEARCH_PATTERN}# !d; \#${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 sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n \
| command sed -E " | command sed "
s#(.*)\.([^\.]+)\$#\2-\1#; s#\(.*\)\.\([^\.]\{1,\}\)\$#\2-\1#;
s#^${NVM_NODE_PREFIX}-##; s#^${NVM_NODE_PREFIX}-##;
" \ " \
)" )"