[gccsdk] [Bug 234] New: GCC 4.1.2 Rel 2 Dev 2012-04-28, SUL 1.12: argv[0] gives full path not leaf name.

bugzilla-daemon at riscos.info bugzilla-daemon at riscos.info
Tue May 1 10:11:06 PDT 2012


http://www.riscos.info/bugzilla3/show_bug.cgi?id=234

           Summary: GCC 4.1.2 Rel 2 Dev 2012-04-28, SUL 1.12: argv[0]
                    gives full path not leaf name.
           Product: GCC/GCCSDK
           Version: other
          Platform: Other
        OS/Version: RISC OS
            Status: NEW
          Severity: normal
          Priority: P1
         Component: C compiler
        AssignedTo: John.Tytgat at aaug.net
        ReportedBy: duncan_moore at ntlworld.com
   Estimated Hours: 0.0


GCCSDK GCC 4.1.2 Release 2 Development 2012-04-28
SharedUnixLibrary 1.12
VRPC RISC OS 4.39

#include <stdio.h>
int main(int argc, char ** argv) {
  printf("%s\n",argv[0]);
  return 0;
}

*test
/HostFS::HardDisc4.$/MyFiles/MyFiles/C/test/test

I think it should just be the leaf name:

*test
test

The same applies to RISC OS filename semantics.

-- 
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.




More information about the gcc mailing list