[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:

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:

More information about the perforce-user mailing list