Skip to content

Commit 9ed694d

Browse files
authored
Update README.md
1 parent a3da295 commit 9ed694d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ 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`:
419+
Note! In some cases to get output you need to convert object to string or invoke `.end()` manually or use the `.out`:
420420

421421
```xsh
422422
r = !(ls /)
@@ -431,6 +431,11 @@ r = !(ls /)
431431
r.out # out is forcing ending
432432
# 'bin\netc\n...'
433433

434+
r = !(ls /)
435+
print(r) # r will be converted to str and the ending will be forced
436+
# bin
437+
# etc
438+
# ...
434439
```
435440

436441
### `$[]` - not capturing (return `None`), print stdout and stderr

0 commit comments

Comments
 (0)