Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Test issues
- X-seq: zsh-workers 22551
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: Test issues
- Date: Thu, 13 Jul 2006 02:37:32 -0700
- In-reply-to: <200607121148.k6CBmwYr023581@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20a807210607110749q205d2d07n5b6957098a3ca5a1@xxxxxxxxxxxxxx> <200607111530.k6BFU0mG023293@xxxxxxxxxxxxxx> <060711092333.ZM17490@xxxxxxxxxxxxxxxxxxxxxx> <200607121148.k6CBmwYr023581@xxxxxxxxxxxxxx>
On Jul 12, 12:48pm, Peter Stephenson wrote:
}
} That relies on the last byte of the output or error for each test being
} a newline. That happens to be true, but I wondered if there was any way
} around the fact that even "$(<file)" strips the last newline and doesn't
} give a way of finding out if there was one there (except for examining
} the file itself).
It's a bit less efficient, but something like:
"$(<file <<<$'\0')"
Of course that depends on multios, <<< and $'\0' all working correctly.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author