diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2025-10-04 21:45:02 +0200 | 
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-10-05 21:24:13 +0200 | 
| commit | 6ee42f58d7293d810a5406d06020e1fdc9bcdaf0 (patch) | |
| tree | cc23366a9d79c7b1dffb8599f103a5472bb80727 /test/asset | |
| parent | 11e04cd229c132ad7d79cbfd8319fb5a3d5f3cbb (diff) | |
Changelog: Implemented input/output redirection in shell scripts
Diffstat (limited to 'test/asset')
| -rw-r--r-- | test/asset/shell/pipe.et | 20 | 
1 files changed, 20 insertions, 0 deletions
| diff --git a/test/asset/shell/pipe.et b/test/asset/shell/pipe.et index 64dcb07..a00360a 100644 --- a/test/asset/shell/pipe.et +++ b/test/asset/shell/pipe.et @@ -3,3 +3,23 @@ test Pipe:      shell on n as sh:          echo abcd | grep -o '[bc]*'          echo abcd | grep -o '[bcd]*' | grep -o '[ab]*' + + +test Redirect: +    node n +    shell on n as sh: +        echo a > file +        echo b > file +        echo c >> file +        echo x +        cat file +        echo y +        cat < file +        echo z + +test PipeRedirect: +    node n +    shell on n as sh: +        echo abcdefghi | grep -o '[b-h]*' | grep -o '[a-g]*' > file +        cat < file | grep -o '[acegi]' | cat > file2 +        cat file2 - < file |