You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conditional Expressions are currently work in progress. The basic API stand but the overall usage might change, especially when it comes down to escaping.
356
+
Conditional Expressions are currently a work in progress. The basic API stands, but the overall usage might change, especially when it comes down to escaping.
358
357
359
-
There are multiple possible conditional-expression-types, that can be used to build expressions.
358
+
There are multiple conditional-expression-types that can be used to built expressions.
360
359
They are build upon the [Shell-Syntax Bash Reference](https://www.gnu.org/software/bash/manual/html_node/Bash-Conditional-Expressions.html).
361
360
362
-
These types exist:
361
+
The following expression-types exist:
363
362
- Artihmetic: ArithmeticExpression::class
364
363
- File: FileExpression::class
365
364
- Shell: ShellExpression::class
@@ -402,7 +401,7 @@ ShellBuilder::new()
402
401
403
402
#### Coprocess
404
403
405
-
To run commands in background, the ShellBuilder class supports the `coproc` keyword.
404
+
To run commands in the background, the ShellBuilder class supports the `coproc` keyword.
406
405
<br /> This keyword lets the command run asynchronously in a subshell and can be combined with pipes and redirections.
407
406
408
407
More information on Coprocesses can be found [in the Bash Reference](https://www.gnu.org/software/bash/manual/html_node/Coprocesses.html).
If you want to direct a single or command or a list of commands into the background, you can achieve that by appending an ampersand `&` at the end of a command.
449
+
If you want to direct a single command or a list of commands into the background, you can achieve that by appending an ampersand `&` at the end of a command.
The pattern-class is to validate string inputs as valid Bourne Shellwords.
468
-
It is based on its equivalents in the [Ruby](https://ruby-doc.org/stdlib-2.5.1/libdoc/shellwords/rdoc/Shellwords.html) and Rust languages.
466
+
The pattern-class validates string inputs as valid Bourne Shellwords.
467
+
It is based on its equivalent implementations in the [Ruby](https://ruby-doc.org/stdlib-2.5.1/libdoc/shellwords/rdoc/Shellwords.html) and Rust languages.
469
468
<br/>
470
469
It takes a string and applies the word parsing rules of shell to split it into an array.
471
470
@@ -488,7 +487,7 @@ Pattern::split('a "b b" a');
488
487
// ['a', 'b b', 'a']
489
488
```
490
489
491
-
The method will throw an exception if there is invalid input.
490
+
The method will throw an exception if there is an invalid input.
492
491
<br />
493
492
For example the following has an unmatched quoting:
494
493
@@ -503,7 +502,7 @@ Pattern::split("a \"b c d e");
503
502
504
503
Sometimes there is a need to better understand why the output is rendered the way it is.
505
504
<br />
506
-
For those situations, all classes implement a `__toArray()`-method, that take the current class-state and print it as array.
505
+
For those situations, all classes implement a `__toArray()`-method, that take the current class-state and print it as an array.
507
506
The `ShellBuilder` additionally implements `jsonSerializable`.
508
507
It itself calls the `__toArray`-method and is meant as a shortcut for outputting to a client.
0 commit comments