diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-05-02 00:37:30 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-05-02 00:37:30 -0400 |
commit | ab7109065ced6feac485e3a5621c0f9c52f7aeec (patch) | |
tree | a242b446b39ab8d4dcd248ec2c5a75f2c45522c0 /src/main.c | |
parent | update makefile (diff) | |
download | lazysphere-ab7109065ced6feac485e3a5621c0f9c52f7aeec.tar.gz lazysphere-ab7109065ced6feac485e3a5621c0f9c52f7aeec.tar.bz2 lazysphere-ab7109065ced6feac485e3a5621c0f9c52f7aeec.zip |
tac, ls fixes
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -21,7 +21,7 @@ int main (ARGUMENTS) { if (argc < 2) { printf("usage: lazysphere [function [arguments]...]\n\n"); printf("currently defined functions:\n"); - printf("\tdd, cat, yes, echo, printf, id, groups, ls, tail, head, ed, tee, true, false, tee, whoami, wc, xargs\n"); + printf("\tdd, cat, yes, echo, printf, id, groups, ls, tail, head, ed, tee, true, false, tee, whoami, wc, xargs, tac\n"); return EXIT_SUCCESS; } argc--; @@ -70,6 +70,8 @@ int main (ARGUMENTS) { return wc(NEXT_ARGS); } else if (streql(cmd, "xargs")) { return xargs(NEXT_ARGS); + } else if (streql(cmd, "tac")) { + return tac(NEXT_ARGS); } else { error("error: invalid command %s", cmd); } |