[Oil-dev] Small example commits: Implement $0 and fix $HOME bug

Andy Chu andychup at gmail.com
Fri Mar 17 00:32:52 PDT 2017


We run the unit tests like this:

./unit.sh all  # runs under bash

After implementing $0, this works:

bin/osh ./unit.sh all

Unlike the last two, these commits are very short!  Please take a look if
you're interested in working on Oil.

-----

Tests for $0:
https://github.com/oilshell/oil/commit/f1a7e38424a53862c187577f180863fb5405dde9

Notice that the $SH environment variable is used in the tests.  This is
'bin/osh' when running under OSH, 'bash' when running under bash, etc.  So
we can test the usage of the shell binary itself.

Implement $0:

https://github.com/oilshell/oil/commit/8af0906d6b2772832c0904ef4a8cb1b491f238cd

-----

Here's another small example, notable only because I'm bumping down the
--osh-allowed-failures flag on some tests.  That's what keeps the spec
tests green and yellow.

Fix bug where 'osh -i' doesn't run without $HOME set:

https://github.com/oilshell/oil/commit/0d48e07e57e75594e9c65437cc9c15eb385047d1

----

Old test stats: 528 total / 305 osh pass / 165 osh fail
New test stats: 532 total / 311 osh pass / 163 osh fail


Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oilshell.org/pipermail/oil-dev-oilshell.org/attachments/20170317/5a058ac9/attachment.htm>


More information about the Oil-dev mailing list