Voting

: nine minus seven?
(Example: nine)

The Note You're Voting On

Bob-PHP at HamsterRepublic dot com
19 years ago
exec strips trailing whitespace off the output of a command. This makes it impossible to capture signifigant whitespace. For example, suppose that a program outputs columns of tab-delimited text, and the last column contains empty fields on some lines. The trailing tabs are important, but get thrown away.

If you need to preserve trialing whitespace, you must use popen() instead.

<< Back to user notes page

To Top