Giter Club home page Giter Club logo

shell-plus-plus's People

Contributors

alexst07 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shell-plus-plus's Issues

Glob compiling issues breaking parts of interpreter

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

Compilation fails on MSVC Windows

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?

whereis example probably will not work on mac

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.

Binaries

We can set up continuous integration to build shell-plus-plus and provide binaries.

I can help with this!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.