Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: cvs wrapper with ssh-agent

by jacques (Priest)
on Sep 19, 2008 at 18:49 UTC ( #712580=note: print w/replies, xml ) Need Help??

in reply to Re: cvs wrapper with ssh-agent
in thread cvs wrapper with ssh-agent

Originally I had did not have the open() there and had the last line as:
print `/usr/bin/cvs @ARGV`;
But this failed when there were double quotes in the @ARGV. For example if @ARGV contained: commit -m "message goes here" filename_to_commit

So I used open() instead.

Replies are listed 'Best First'.
Re^3: cvs wrapper with ssh-agent
by blazar (Canon) on Sep 19, 2008 at 18:59 UTC

    I personally believe

    If you use open or exec (or system) you can "bypass" the shell by passing a list with more than one element, e.g.:

    open my $data, '-|', '/usr/bin/cvs' => @ARGV or die horribly;
    If you can't understand the incipit, then please check the IPB Campaign.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://712580]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2016-10-23 01:34 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (299 votes). Check out past polls.