[p4] p4 commands from C program

P4Reg perforce-user-forum at forums.perforce.com
Fri Mar 24 02:35:01 PDT 2017


Posted on behalf of forum user 'P4Reg'.


There is a discussion about using the windows p4 client with Cygwin here that
considers handling the working directory that may help you issue:
    
http://forums.perforce.com/index.php?/topic/1551-cygwin-client-support/

In summary from the above link, if you set a function like this in your Cygwin
login shell (for example in .bashrc), it should allow you to transparently use
the windows p4 client and may point to how to address the issue you are seeing:

p4() { PWD=$(cygpath -wa .) "/cygdrive/c/Program Files
(x86)/Perforce/p4" "$@"; }



--
Please click here to see the post in its original format:
  http://forums.perforce.com/index.php?/topic/5228-p4-commands-from-c-program


More information about the perforce-user mailing list