Tuesday, 1 May 2012

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

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@aaug.net
ReportedBy: duncan_moore@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.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment