Thus said Stephan Beal on Tue, 02 Jan 2018 03:07:20 +0100:

> That will  still strip  any newlines from  his input,  though, because
> that's how $(...) works.

It actually only strips the trailing newline. Any newlines in the middle
of the file are fine. So for example:

$ cat third.txt 
Third from file.

With multiple lines.

$ fossil ticket change 64f086ad5be82495327100a66dcdee24432e2b79 +comment "
$(cat third.txt)"
ticket add succeeded for 64f086ad5be82495327100a66dcdee24432e2b79

Will  work, as  long as  that embedded  newline (maybe  it's actually  a
carriage-return) is in there.

> To get the  comment text imported verbatim, i suspect  that the ticket
> command needs  to support a  -M FILENAME  option to import  a comment,
> like checkin does.

And this certainly would be a friendlier option. :-)

Andy
-- 
TAI64 timestamp: 400000005a4af1ee


_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to