1. Jakub Wilk
  2. shellcat

Commits

Jakub Wilk  committed b14acb8

Fix the case where the source file ends with ‘<’ or ‘<$’ text.

  • Participants
  • Parent commits e45c01a
  • Branches default

Comments (0)

Files changed (1)

File shellcat.c

View file
  • Ignore whitespace
         case STATE_HASH:
         case STATE_HASH_BANG:
         case STATE_TEXT:
+            sputs("'\n");
+            break;
         case STATE_TEXT_LT:
+            sputs("<'\n");
+            break;
         case STATE_TEXT_LT_DOLLAR:
-            sputs("'\n");
+            sputs("<$'\n");
             break;
         default:
             break;