Giter VIP home page Giter VIP logo

bashapp's People

Contributors

alingse avatar backalor avatar jar-o 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bashapp's Issues

Handling sudo?

Hi,

I have a shell script which needs to escalate privileges i.e. ask the user for sudo password (I basically install brew, which asks for sudo password)

Is there a way this can be accomplished using bashapp? Everything else works fine so far.

unable to compile

gcc bashapp.c -o bashapp
In file included from bashapp.c:26:
./bashapp.h:326:12: error: implicit declaration of function 'time' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
srand( time(NULL) );
^
bashapp.c:63:16: error: implicit declaration of function 'time' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
srand( time(NULL) );
^
2 errors generated.

Couple of errors

  1. bashapp.h was missing #include <time.h> (added and it compiles fine)
  2. once compiled, and run on test.sh, it kicks out: Segmentation fault: 11

Here's the output of lldb's thread backtrace:

(lldb) thread backtrace
* thread #1: tid = 0x149835, 0x00007fff83568812 libsystem_c.dylib`strlen + 18, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00007fff83568812 libsystem_c.dylib`strlen + 18
    frame #1: 0x0000000100001414 bashapp`replace(s=0x0000000100002cc7, olds=0x0000000100002d97, news=0x0000000000000000) + 36 at bashapp.h:118
    frame #2: 0x0000000100002318 bashapp`main(argc=2, argv=0x00007fff5fbffc00) + 1528 at bashapp.c:145
    frame #3: 0x00007fff875525fd libdyld.dylib`start + 1
(lldb) 

Thanks!

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.