Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Test issues



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