aboutsummaryrefslogtreecommitdiff
path: root/sh/sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'sh/sh.c')
-rw-r--r--sh/sh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sh/sh.c b/sh/sh.c
index 8e9eab5..2bb095c 100644
--- a/sh/sh.c
+++ b/sh/sh.c
@@ -15,6 +15,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+/* Here's the POSIX specification of sh: */
+/* https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html */
+
/* Define feature test macro. It doesn't compile with gcc without that for
* some reason.
*/
@@ -120,7 +123,6 @@ void commandLoop(FILE *filstr) {
name[strlen(name) - 1] = 0;
strcpy(tempstr, name); /* We don't want to override `name`. */
if (strtok(tempstr, ";") != NULL && strtok(NULL, ";") != NULL) {
- printf(";\n");
/* Hacky wacky hack. */
strcpy(tempstr, name);
token = strtok_r(tempstr, ";", &tokenstate);
@@ -131,7 +133,6 @@ void commandLoop(FILE *filstr) {
}
}
else {
- printf("normal\n");
command_argc = splitCommand(name, command); /* See parser.c */
if ((errno = parseCommand(command_argc, command)) != 0 /* See parser.c */ )
printf("sh: %s: %s\n", command[0], strerror(errno));