alexst07 / shell-plus-plus Goto Github PK
View Code? Open in Web Editor NEWA friendly and modern functional object oriented language for shell script.
Home Page: https://alexst07.github.io/shell-plus-plus/
License: Apache License 2.0
A friendly and modern functional object oriented language for shell script.
Home Page: https://alexst07.github.io/shell-plus-plus/
License: Apache License 2.0
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]
}
^
I used Boost-msvc 1.67 and readline 8.0.
Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
The compiler C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.28.29304/bin/Hostx64/x64/cl.exe has no C++14 support. Please use a different C++ compiler.
Configuring done
Generating done
❯ cmake --build ./build
Microsoft (R) Build Engine version 16.8.0-preview-20452-03+5dee11854 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
cl : command line error D8021: invalid numeric argument '/Wextra' [C:\Users\aminy\Documents\GitHub\Shell\shell-plus-plu
s\build\src\shpp.vcxproj]
Should I try with Clang or GCC instead?
Do you want to add macOS support?
And how to read user input via prompt started with message>
like in python a = input('message> ')
?
https://github.com/alexst07/shell-plus-plus#check-if-a-command-exists
I did not run on Mac but since the output of whereis
is different on Linux and Mac, I assume the example would be broken on Mac:
# Mac
$ whereis ls
/bin/ls
$ whereis no-such-prog
(no output at all)
# Linux
$ whereis ls
ls: /bin/ls /usr/share/man/man1/ls.1.gz
$ whereis no-such-prog
no-such-prog:
I would consider which
. It works the same on Mac and Linux and uses exit code to convey whether the command was found.
We can set up continuous integration to build shell-plus-plus and provide binaries.
I can help with this!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.