Reputation: 337
Hi I wanted to put multi line description using following command
p4 --field Description="MY CLN Header \\n my CLN complete description in two -three lines update " change -o |p4 change -i
Upvotes: 3
Views: 1485
Reputation: 71517
If you can't convince your shell to pass the required linebreak and tab characters as part of the command line argument, try telling the --field
option to append the second line to the first:
p4 --field Description="MY CLN Header" --field Description+="my CLN complete description in two -three lines update" change -o|p4 change -i
(edit) or, since that's buggy, you could do something like this using P4Perl:
$change = $p4->FetchChange();
$change->_Description( "MY CLN Header \n my CLN complete description in two -three lines update " );
$form = $p4->FormatChange( $change );
$p4->SaveChange( $form );
Upvotes: 2