Skip Menu |

This queue is for tickets about the ClearCase-SyncTree CPAN distribution.

Report information
The Basics
Id: 59639
Status: new
Priority: 0/
Queue: ClearCase-SyncTree

People
Owner: Nobody in particular
Requestors: ABURS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.47
Fixed in: (no value)



Subject: Relative pathes in @ARGV don't work as expected
In the manpage for synctree, you state that "File paths may be given as relative or absolute". That seems to be not true, only absolute pathes work. Relative ones show weird behaviour:

This is the correct behaviour, with absolute pathes
Show quoted text
% cd
/home/utah2/abu
Show quoted text
% synctree -n -sb /home/utah2/abu/noback/tmp/ecc -db /mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse /home/utah2/abu/noback/tmp/ecc/plugins
Adding 1 elements:
    /home/utah2/abu/noback/tmp/ecc/plugins/net.sourceforge.eclipseccase_2.2.3.v2010072216xx.jar +=>
        /view/abuMain/mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse/plugins/net.sourceforge.eclipseccase_2.2.3.v2010072216xx.jar
Element change summary: add=1 modify=0 subtract=0

Then, I expected to be able to use a relative path to the plugins folder, based on -sbase:
Show quoted text
% synctree -n -sb /home/utah2/abu/noback/tmp/ecc -db /mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse plugins
Element change summary: add=0 modify=0 subtract=0

This did not work (add=0). So I assumed that relative pathes are taken from current dir, not -sbase, and tried this:
Show quoted text
% cd /home/utah2/abu/noback/tmp/ecc
/home/utah2/abu/noback/tmp/ecc
Show quoted text
% synctree -n -sb /home/utah2/abu/noback/tmp/ecc -db /mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse plugins
Adding 8 elements:
    plugins/net.sourceforge.clearcase_2.2.3.v201007221616/META-INF/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/META-INF/MANIFEST.MF +=>
        /view/abuMain/mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/META-INF/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/META-INF/MANIFEST.MF
    plugins/net.sourceforge.clearcase_2.2.3.v201007221616/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/about.html +=>
        /view/abuMain/mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/about.html
    plugins/net.sourceforge.clearcase_2.2.3.v201007221616/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/clearcase.jar +=>
        /view/abuMain/mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/clearcase.jar
    plugins/net.sourceforge.clearcase_2.2.3.v201007221616/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/license.html +=>
        /view/abuMain/mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/license.html
    plugins/net.sourceforge.clearcase_2.2.3.v201007221616/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/plugin.properties +=>
        /view/abuMain/mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/plugins/net.sourceforge.clearcase_2.2.3.v201007221616/plugin.properties
    plugins/plugins/net.sourceforge.eclipseccase.ui_2.2.3.v201007221616.jar +=>
        /view/abuMain/mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse/plugins/plugins/net.sourceforge.eclipseccase.ui_2.2.3.v201007221616.jar
    plugins/plugins/net.sourceforge.eclipseccase_2.2.3.v201007221616.jar +=>
        /view/abuMain/mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse/plugins/plugins/net.sourceforge.eclipseccase_2.2.3.v201007221616.jar
    plugins/plugins/net.sourceforge.eclipseccase_2.2.3.v2010072216xx.jar +=>
        /view/abuMain/mcsofttools/cropet/inst/eclipse/extensions/clearcase_2/eclipse/plugins/plugins/net.sourceforge.eclipseccase_2.2.3.v2010072216xx.jar
Element change summary: add=8 modify=0 subtract=0

Very weird pathes...
For the moment, I can live with absolute pathes only. But it would be better to disable relative pathes if they don't work, and document correctly. Or even better, fix it...?