Comments (2)
For clarity:
function test() {
while getopts ":h" opt; do
case "$opt" in
h)
echo "Usage: test [PATH]" && return
;;
esac
done
}
Putting the above code in a file and running a simple source
on that file will make the "test" function available to your shell. Invoking test
will result in an error message
"Unexpected error in execvpe('getopts', ['getopts', ':h', 'opt'], ...): [Errno 2] No such file or directory"
from oil.
Fixed with the OSH 0.2 release.
from oil.
Related Issues (20)
- 'const c' without null on RHS can be re-declared HOT 10
- try { } should be the only form for simplicity HOT 3
- Global mutable containers could probably use real Python-like modules (alternative is dependency inversion) HOT 15
- implement `try ( )` in addition to `try { }` HOT 1
- `=` or `see` or `show` ...? HOT 7
- [doc] syntax for typed `out->setValue()` HOT 22
- proc/func param can't be named 'in' HOT 1
- Document idiom for mutable default args -- use `null` and initialize them in body HOT 8
- echo $( = mydict ) doesn't parse HOT 2
- Interaction (and syntax) differences between: `->` (any type in value.Place) -vs.- atoms. Further: `?`(any) and `->:`("no-rebind" mutable). HOT 40
- standard substitution/mutation syntax for transparent Place type, e.g. place[key] in assignments etc. HOT 9
- `command` built-in does not support `-p` option HOT 4
- [ysh] `->` as explicit "pointer assignment" (i.e. for mutables and place.Value pointers) HOT 8
- Error when running minimal install HOT 2
- Error when running tests, zsh missing? HOT 3
- Use the same Dict from 2 different files (re-using and stand-alone) HOT 9
- Print value.Place in a nicer way - (name, frame) HOT 1
- Add current time to prompt HOT 1
- fatal: "declare -n" refs to ysh vars (as universal interface "narrow waist" to source/use ysh code) HOT 8
- Consider ${a[@]} semantics for List / Dict HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oil.