From 1a311b3796dcc66cc9e0cf4a9837cab0513a27fe Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 30 May 2026 21:10:04 +0100 Subject: [PATCH] doc: sample: make the simple sample script actually simple --- doc/sample/simple.bshell | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/doc/sample/simple.bshell b/doc/sample/simple.bshell index 8d4a3a4..0c68852 100644 --- a/doc/sample/simple.bshell +++ b/doc/sample/simple.bshell @@ -1,22 +1,3 @@ -func test-function($name) { - if (5 -lt $var) { - echo good - } else { - echo bad - } +$name = "Jonh" - echo "Hello, $name! $(2 + 4 + 2) wow" -} - -# Example of instantiating an FX runtime object. -$obj = new-object -type-name fx.string -arguments "John Doe" - -$hash = @{ - 1 = 'one' - 2 = 'two' - 'three' = 3 -} - -$hash2 = @{ 1 = 'one'; 2 = 'two'; 'three' = 3 } - -test-function -name $obj +echo "Hello, $name!"