commands:builtin:mapfile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
commands:builtin:mapfile [2012/07/02 04:12]
ormaaj [The callback] Updated example
commands:builtin:mapfile [2013/04/14 12:37]
thebonsai Don't tread version 4 special - it has been around for a long time now
Line 1: Line 1:
 ====== The mapfile builtin command ====== ====== The mapfile builtin command ======
-:V4: 
  
 ===== Synopsis ===== ===== Synopsis =====
Line 131: Line 130:
 ===== Bugs ===== ===== Bugs =====
  
-  * Early implementations were buggy. For example, ''​mapfile''​ filling the readline history buffer with calls to the ''​CALLBACK''​. This was fixed in 4.1 beta. Some bugs may still exist+  * Early implementations were buggy. For example, ''​mapfile''​ filling the readline history buffer with calls to the ''​CALLBACK''​. This was fixed in 4.1 beta. 
 +  * <​del>''​mapfile -n''​ reads an extra line beyond the last line assigned to the array, through Bash.</​del>​ [[ftp://​ftp.gnu.org/​gnu/​bash/​bash-4.2-patches/​bash42-035 | Fixed in 4.2.35]].
 ===== To Do ===== ===== To Do =====
   * Create an implementation as a shell function that's portable between Ksh, Zsh, and Bash (and possibly other bourne-like shells with array support).   * Create an implementation as a shell function that's portable between Ksh, Zsh, and Bash (and possibly other bourne-like shells with array support).
  • commands/builtin/mapfile.txt
  • Last modified: 2013/08/19 08:09
  • by ormaaj