mrdrmccoy / bblib Goto Github PK
View Code? Open in Web Editor NEWA library of functions for better BASH scripts
License: Apache License 2.0
A library of functions for better BASH scripts
License: Apache License 2.0
From: https://stackoverflow.com/questions/49439994
In testing prunner
, I have ended up with the following scenario:
Testing was performed on Ubuntu 16.04 with Bash 4.3 and on Mac OS X with Bash 4.4.
What appears to be happening with the latter in test.bash is that getopts is refusing to process -c, and thus prunner will try to directly execute the argument without the prefix command it was given. The strange part is that I am able to observe it accepting the -t option, so getopts is at least partially working. Bash debugging with set -x has not been able to shed any light on why this is happening for me.
Can anyone please help me to determine why -c options are not working correctly for prunner in test.bash when lines are piped to stdin?
Variable and function naming conventions are not complaint with the Google style guide for Bash at https://google.github.io/styleguide/shell.xml.
Stack trace does not properly print commands in many cases.
Add netcat
functionality with Bash builtins /dev/tcp
and /dev/udp
.
test.sh
currently does not perform proper unit testing. This issue is to re-write it using BATS.
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.