diff options
author | Andrés M <andmarti1424@users.noreply.github.com> | 2021-03-07 11:44:24 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-07 11:44:24 -0300 |
commit | f942458ecfbb8014146af1825311adb1b1cbfec1 (patch) | |
tree | 79cb2c602048c563409f18a7bff2a1fc9761e312 /src/main.c | |
parent | a2dd8aa00b87f40a678c8e7ff04cd6178693d77a (diff) | |
parent | fbba833dbb2dc65d41c8275d73ee2ca1cf9c6ddb (diff) |
Merge pull request #390 from mipmip/pr-yacc-morescriptcommands
Pr yacc morescriptcommands
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -282,13 +282,13 @@ int main (int argc, char ** argv) { // 2. loadrc loadrc(); - // 3. check input from stdin (pipeline) + // 3. read sc file passed as argv + load_sc(); + + // 4. check input from stdin (pipeline) // and send it to interp read_stdin(); - // 4. read sc file passed as argv - load_sc(); - // change curmode to NORMAL_MODE chg_mode('.'); @@ -576,6 +576,7 @@ void read_argv(int argc, char ** argv) { void load_sc() { char name[PATHLEN]; + strcpy(name, ""); //force name to be empty #ifdef NO_WORDEXP size_t len; #else @@ -846,6 +847,7 @@ void show_usage_and_quit(){ \n --export_csv Export to csv without interaction\ \n --export_tab Export to tab without interaction\ \n --export_txt Export to txt without interaction\ +\n --export_mkd Export to markdown without interaction\ \n --external_functions Set variable 'external_functions'\ \n --half_page_scroll Set variable 'half_page_scroll'\ \n --ignorecase Set variable 'ignorecase'\ |