← Commit list

957f79f47

Denys Vlasenko
Denys Vlasenko
2010-10-03
FAILED Duration: 271s

Subject

hush: small code shrink

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush.c+6 -2
@@ -4382,12 +4382,16 @@ static void o_addblock_duplicate_backslash(o_string *o, const char *str, int len
{
while (--len >= 0) {
char c = *str++;
+
#if ENABLE_HUSH_BRACE_EXPANSION
if (c == '{' || c == '}') {
/* { -> \{, } -> \} */
o_addchr(o, '\\');
- o_addchr(o, c);
- continue;
+ /* And now we want to add { or } and continue:
+ * o_addchr(o, c);
+ * continue;
+ * luckily, just falling throught achieves this.
+ */
}
#endif
o_addchr(o, c);