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

bugzilla-daemon at riscos.info bugzilla-daemon at riscos.info
Mon Apr 30 06:44:57 PDT 2012


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

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.




More information about the gcc mailing list