Fixed bb -- +dirname not respecting -- properly

This commit is contained in:
Bruce Hill 2019-11-11 12:34:13 -08:00
parent b7ad0e93a2
commit e96004d50e

1
bb.c
View File

@ -1258,6 +1258,7 @@ int main(int argc, char *argv[])
write(cmdfd, "\0", 1);
for (int i = 0; i < argc; i++) {
if (strcmp(argv[i], "--") == 0) break;
if (argv[i][0] == '+') {
char *cmd = argv[i] + 1;
char *colon = strchr(cmd, ':');