github.com/rogpeppe/go-internal@v1.12.1-0.20240509064211-c8567cf8e95f/testscript/testdata/stdin.txt (about)

     1  [!exec:cat] skip
     2  
     3  stdin hello.txt
     4  exec cat
     5  stdout hello
     6  exec cat
     7  ! stdout hello
     8  
     9  
    10  [!exec:cat] stop
    11  
    12  # Check that 'stdin stdout' works.
    13  exec cat hello.txt
    14  stdin stdout
    15  exec cat
    16  stdout hello
    17  
    18  -- hello.txt --
    19  hello
    20