Skip to content

Commit a3da295

Browse files
authored
Update README.md
1 parent 889c1dd commit a3da295

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,23 @@ for l in ret:
416416

417417
```
418418

419+
Note! In some cases to get `.output` you need to invoke `.end()` manually or use the `.out`:
420+
421+
```xsh
422+
r = !(ls /)
423+
r.output
424+
# ''
425+
426+
r.end()
427+
r.output
428+
# 'bin\netc\n...'
429+
430+
r = !(ls /)
431+
r.out # out is forcing ending
432+
# 'bin\netc\n...'
433+
434+
```
435+
419436
### `$[]` - not capturing (return `None`), print stdout and stderr
420437

421438
Passes stdout to the screen and returns `None`:

0 commit comments

Comments
 (0)