Skip to content

busybox-read-d-v1

@dscho dscho tagged this 07 Aug 10:17
parent 4dea1edd08a45c5987448719e56ee61a20fb9210
author Johannes Schindelin <johannes.schindelin@gmx.de> 1498771845 +0200
committer Johannes Schindelin <johannes.schindelin@gmx.de> 1502101018 +0200

The POSIX standard only requires the `read` builtin to handle `-r`:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/read.html

However, Bash introduced the option `-d <DELIM>` to override IFS for
just one invocation, and it is quite useful.

It is also super easy to implement in BusyBox' ash, so let's do that.

The motivation: This option is used by Git's test suite.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Submitted-As: https://public-inbox.org/git/null
Assets 2
Loading