Thanks a lot. I am a newbie to shell script. I appreciate your help.
On 25 Jun 2015 13:45, "Branko Čibej" wrote:
> On 25.06.2015 10:10, Dhiraj Prajapati wrote:
>
> Below is the code snippet I am using. I need the file contents in a
> variable.
>
>
> *fileContents
Below is the code snippet I am using. I need the file contents in a
variable.
*fileContents=`$SVNLOOK cat $REPOS $FNAME -t $TXN`*
*echo "contents:" $fileContents 1>&2*
Am I doing anything wrong?
-Dhiraj
On Thu, Jun 25, 2015 at 1:37 PM, Branko Čibej wrote:
> On 25.0
Hi,
I have a pre-commit hook which validates the contents of the files being
committed before commit.
I am using *svnlook cat* command to read the contents of the file being
committed.
However, whenever there is a leading slash on a particular line in the
file, the *svnlook cat* command fails to di