mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-27 06:31:19 -03:00
@@ -475,7 +475,7 @@ The exit status of the last run command substitution is available in the <a href
|
||||
|
||||
Only part of the output can be used, see <a href='#expand-index-range'>index range expansion</a> for details.
|
||||
|
||||
Fish has a default limit of 10 MiB on the amount of data a command substitution can output. If the limit is exceeded the entire command, not just the substitution, is failed and `$status` is set to 122. You can modify the limit by setting the `FISH_READ_BYTE_LIMIT` variable at any time including in the environment before fish starts running. If you set it to zero then no limit is imposed. This is a safety mechanism to keep the shell from consuming an too much memory if a command outputs an unreasonable amount of data. Note that this limit also affects how much data the `read` command will process.
|
||||
Fish has a default limit of 10 MiB on the amount of data a command substitution can output. If the limit is exceeded the entire command, not just the substitution, is failed and `$status` is set to 122. You can modify the limit by setting the `fish_read_limit` variable at any time including in the environment before fish starts running. If you set it to zero then no limit is imposed. This is a safety mechanism to keep the shell from consuming an too much memory if a command outputs an unreasonable amount of data. Note that this limit also affects how much data the `read` command will process.
|
||||
|
||||
Examples:
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ Otherwise, it is set to 0.
|
||||
In order to protect the shell from consuming too many system resources, `read` will only consume a
|
||||
maximum of 10 MiB (1048576 bytes); if the terminator is not reached before this limit then VARIABLE
|
||||
is set to empty and the exit status is set to 122. This limit can be altered with the
|
||||
`FISH_READ_BYTE_LIMIT` variable. If set to 0 (zero), the limit is removed.
|
||||
`fish_read_limit` variable. If set to 0 (zero), the limit is removed.
|
||||
|
||||
\subsection read-history Using another read history file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user