alexst07 / shell-plus-plus

A friendly and modern functional object oriented language for shell script.

Home Page:https://alexst07.github.io/shell-plus-plus/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Glob compiling issues breaking parts of interpreter

johanlieber opened this issue · comments

When trying to use the sample loop project, I get this error:

File: 'samples/language/9-loop.sh'
line: 81 >> files = [file for file in $(ls) if file.size("k") > 10]
Error: symbol size not found

I tried compiling this on Ubuntu 18.04.

When I was compiling the project, I got this error:

/home/ubuntu/shell-plus-plus/glob-cpp/include/glob-cpp/glob.h: In instantiation of ‘std::tuple<long unsigned int, long unsigned int> glob::StateMatch::Next(glob::String&, size_t) [with charT = char; glob::String = std::__cxx11::basic_string; size_t = long unsigned int]’:
/home/ubuntu/shell-plus-plus/src/utils/glob.cc:92:1: required from here
/home/ubuntu/shell-plus-plus/glob-cpp/include/glob-cpp/glob.h:120:56: warning: unused parameter ‘str’ [-Wunused-parameter]
std::tuple<size_t, size_t> Next(const String& str,
^~~
/home/ubuntu/shell-plus-plus/glob-cpp/include/glob-cpp/glob.h: In member function ‘std::tuple<long unsigned int, long unsigned int> glob::StateGroup::Next(glob::String&, size_t) [with charT = char]’:
/home/ubuntu/shell-plus-plus/glob-cpp/include/glob-cpp/glob.h:518:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^