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

           Summary: SUL 1.12:  system()/exec*() ignoring aliases of
                    existing non-module commands.
           Product: GCC/GCCSDK
           Version: other
          Platform: Other
        OS/Version: RISC OS
            Status: NEW
          Severity: normal
          Priority: P1
         Component: C compiler
        AssignedTo: [email protected]
        ReportedBy: [email protected]
   Estimated Hours: 0.0


GCCSDK GCC 4.1.2 Release 2 Development
ShareUnixLibrary 1.12
VRPC RISC OS 4.39

system() and exec*() are ignoring aliases of existing non-module commands.
For example, alias.c:

#include <stdlib.h>
int main(void) {
  system("time");
  system("ls");
  return 0;
}

*gcc -o test alias.c

'ls' is a previously compiled Run$Path command.

*alias ls echo should see this
*alias time echo should see this
*ls
should see this
*time
should see this


*test
should see this
!Run  c  d  Makefile  o  stat  test


Previously, the output was:
should see this
should see this

-- 
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 [email protected]
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

Reply via email to