alexst07 / shell-plus-plus

A friendly and modern functional object oriented language for shell script.
https://alexst07.github.io/shell-plus-plus/
Apache License 2.0
154 stars 10 forks source link

Glob compiling issues breaking parts of interpreter #6

Open johanlieber opened 4 years ago

johanlieber commented 4 years ago

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] } ^