[p4] Re: Perforce and automounted directories.

Shelley L. Shostak sls at cthulhu.engr.sgi.com
Fri Oct 29 11:58:37 PDT 1999


On Fri, 29 Oct 1999, Scott Blachowicz wrote:

> 
> That's odd...normally PWD would be whatever got fed to the 'cd'
> command.  At any rate, this kind of stuff is why I've hinted before

No, this is not correct.  /bin/pwd will return the true path.  The 'cd'
path (which may have followed symlinks) will be in environment variables:

In csh...

11:57 sls at bonnie% cd /proj/irix6.5/isms/irix
11:57 sls at bonnie% echo $cwd
/proj/irix6.5/isms/irix
11:57 sls at bonnie% /bin/pwd
/hosts/bonnie.engr/disks/xlv5/kudzu/irix_kudzu
11:58 sls at bonnie% 

Fortunately under irix autofs (as opposed to automount) does not have /tmp_mnt
embedded in the path.

Shelley

> that there really ought to be a way to get the 'p4' command to ignore
> $PWD and/or to have a way to decide if a given path really IS in the
> same directory tree as a client view (symlinks on Unix & SUBST'd
> drives on Windoze can throw things off).
> 
> Scott.Blachowicz at seaslug.org
> 
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
> 





More information about the perforce-user mailing list