Monday, 30 April 2012

[gccsdk] [Bug 232] New: GCC 4.1.2 Rel 2 Dev 2012-04-28, SUL 1.12: system(), Alias and % prefix

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

Summary: GCC 4.1.2 Rel 2 Dev 2012-04-28, SUL 1.12: system(),
Alias and % prefix
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

ls is previously compiled with gcc.
This code:

#include <stdlib.h>
#include <stdio.h>
int main(void) {
system("Alias Time echo XXXXXXXXXX");
system("Alias ls echo XXXXXXXXXX");
printf("--------------------------------\n");
system("%Time");
printf("--------------------------------\n");
system("%ls");
printf("--------------------------------\n");
system("UnAlias Time");
system("UnAlias ls");
return 0;
}

gives:

*test
--------------------------------
--------------------------------
--------------------------------

It should give something like:

*test
--------------------------------
Mon,30 Apr 2012.13:13:02
--------------------------------
!Run c d Makefile o stat test
--------------------------------

with the % prefix over-riding the aliases.

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