From 10498059e4d82418a83cf48ab5c58172038a0958 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sun, 13 Aug 2017 15:36:39 -0700 Subject: [PATCH] Revert "document command substitution data limit" This reverts commit 2bbcc5cbc80966d80576d1c30c14442ef6a6268e. --- doc_src/index.hdr.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc_src/index.hdr.in b/doc_src/index.hdr.in index 8994a0cb4..51f021d64 100644 --- a/doc_src/index.hdr.in +++ b/doc_src/index.hdr.in @@ -470,12 +470,10 @@ end The output of a series of commands can be used as the parameters to another command. If a parameter contains a set of parenthesis, the text enclosed by the parenthesis will be interpreted as a list of commands. On expansion, this list is executed, and substituted by the output. If the output is more than one line long, each line will be expanded to a new parameter. Setting `IFS` to the empty string will disable line splitting. -The exit status of the last run command substitution is available in the status variable if the substitution occurs in the context of a `set` command. +The exit status of the last run command substitution is available in the status variable. Only part of the output can be used, see index range expansion 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. - Examples: \fish