Kaito Udagawa

Results 147 comments of Kaito Udagawa

This project won't permit bashisms.

This works with bash but does not work with POSIX sh. This is called bashisms. ``` [[ "${version}" =~ 5[.]4[.][0-9]+ ]] ``` You can detect them by ShellCheck. ``` $...

Related #51.

@yourpalmark I wrote the fish script of this project, and it worked at that time, but it might be broken since #34 (my PR) was merged. I proposed to revert...

This is not feasible with a single line of shell script because `luaver` does not ship with the list of lua versions.

AFAIK `nvm` is the only runtime version manager which implements version aliasing. ``` nvm install 6 ``` [They work hard to extract the latest version](https://github.com/creationix/nvm/blob/master/nvm.sh#L317-L344).

IMO having static aliases is simple and enough like this: ```sh __luaver_resolve_lua_version() { case "$1" in 5 | 5.3 ) echo 5.3.3 ;; 5.2 ) echo 5.2.4 ;; 5.1 )...

I'm afraid web-scraping `lua.org` may easily break when the lua team decide to change the look-and-feel of their site. I think getting git tags using wget or curl could be...

``` $ digit='[0-9]' $ curl -fsSL https://api.github.com/repos/lua/lua/git/refs/tags | \ awk 'match($0, /"refs\/tags\/v'"$digit"."$digit"."$digit"'"/) { $0 = substr($0, RSTART + 12, 5) ; gsub("[-_]", ".") ; print }' 2.5.1 5.2.0 5.2.1 5.2.2...

@raingloom https://github.com/lua/lua is a kind of the original source.