diff --git a/bin/assert/string b/bin/assert/string index a8b90bd..0d48759 100755 --- a/bin/assert/string +++ b/bin/assert/string @@ -4,3 +4,31 @@ set -v # Turn on verbose logging, so that the following will present a tutorial. # assert module api is loaded with the line 'api/assert' in shell/includes. +if assert string "test" equals "test" +then + log "The string test is equal to test!" +else + log "The string test is not equal to test!" +fi + +if assert string "test" equals "fail" +then + log "The string test is equal to fail!" +else + log "The string test is not equal to fail!" +fi + +if assert string "" is empty +then + log "The string is empty!" +else + log "The string is not empty!" +fi + +if assert string "non empty" is nonempty +then + log "The string is non empty!" +else + log "The string is empty!" +fi + diff --git a/bin/interactive/shell b/bin/interactive/shell index e69de29..c5cd558 100755 --- a/bin/interactive/shell +++ b/bin/interactive/shell @@ -0,0 +1,13 @@ +#!/bin/sh + +set -v # Turn on verbose logging, so that the following will present a tutorial. + +# interactive(s) module is loaded with line 'api/interactive' in an +# extension's shell/includes file. + +if shell is interactive +then + log "This shell is interactive!" +else + log "This shell is not interactive." +fi diff --git a/bin/service/activate b/bin/service/activate deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/activate +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/cli b/bin/service/cli deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/cli +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/confd b/bin/service/confd deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/confd +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/configcheck b/bin/service/configcheck deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/configcheck +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/deactivate b/bin/service/deactivate deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/deactivate +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/info b/bin/service/info deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/info +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/initd b/bin/service/initd deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/initd +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/initialize b/bin/service/initialize deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/initialize +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/list b/bin/service/list deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/list +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/logtail b/bin/service/logtail deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/logtail +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/pid b/bin/service/pid deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/pid +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/reload b/bin/service/reload deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/reload +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/restart b/bin/service/restart deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/restart +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/setup b/bin/service/setup deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/setup +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/signal b/bin/service/signal deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/signal +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/start b/bin/service/start deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/start +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/status b/bin/service/status deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/status +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/stop b/bin/service/stop deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/stop +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/uninstall b/bin/service/uninstall deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/uninstall +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/bin/service/usage b/bin/service/usage deleted file mode 100755 index 1a24852..0000000 --- a/bin/service/usage +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh