Chris Johns commented on a discussion on cpukit/libmisc/shell/main_getenv.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1241#note_150139 > > if (argc != 2) > { > - printf ("error: only argument is the variable name\n"); > + printf ("error: -a or the variable name\n"); > return 1; > } > > + if (strcmp("-a", argv[1]) == 0) { > + char** e = environ; > + while (e != NULL && *e != NULL) { > + printf("%s\n", *e); Fixed -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1241#note_150139 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
