diff options
author | sabetts <sabetts> | 2001-08-18 21:54:21 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-08-18 21:54:21 +0000 |
commit | 0a1a6fbcfddf9f4857b1c95f32321bbd27968cea (patch) | |
tree | d7d799cffdbc3e27a37a8bbeac1393694def1c88 /src/main.c | |
parent | bd72362cf682c093fe84802b6c08b67f6f9d819e (diff) | |
download | ratpoison-0a1a6fbcfddf9f4857b1c95f32321bbd27968cea.zip |
commands can be called interactively and non-interactively. commands return a result string
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -243,7 +243,14 @@ read_rc_file (FILE *file) /* do it */ if (*line != '#') - command (line); + { + char *result; + result = command (0, line); + + /* Gobble the result. */ + if (result) + free (result); + } *line = '\0'; } |