On Tue, Jun 03, 2003 at 12:46:42PM +0300, Stephen Biggs wrote:
> I got it to work using another way which actually works better if you
> don't want to be so interactive (one press of the enter key instead of
> 3):
> 
> $ cvs ci -m "line 1"'$\n'"line 2"'$\n'"line 3"

Yikes!  Non-interactive it may be, but pretty painful!  How about
writing a wrapper shell script?  You would invoke it as:
   cvs-wrapper -m 'message\ncontaining\nmultiple lines' other-args

It would have to do something like:
  - extract (and remove) the -m and its value from the command line
  - turn the "\n"s into newlines (and any other transformations
    you like)
  - export CVSEDITOR=`which cat` into the environment
  - go:
        echo $transformed_log_message | cvs $other_args

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        [EMAIL PROTECTED]
|  |  /
When I came back around from the dark side, there in front of me would
be the landing area where the crew was, and the Earth, all in the view
of my window. I couldn't help but think that there in front of me was
all of humanity, except me.
        - Michael Collins, Apollo 11 Command Module Pilot



_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to