diff --git a/docs/examples/functions.ss b/docs/examples/functions.ss index 1352e09..33b84b9 100755 --- a/docs/examples/functions.ss +++ b/docs/examples/functions.ss @@ -30,7 +30,7 @@ ss_stringdata=Data to encrypt and decrypt ss_exec_command=uname -a # Printing function in SS -===============print "Welcome to SlideScript!" +print "Welcome to SlideScript!" # Sleep function in SS print "Some content to print, working with '%ss_filename%' today!" # Below demonstrates SS encrypting a string, passing the output diff --git a/src/lexer.c b/src/lexer.c index 4603f14..30c7cdd 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -349,7 +349,7 @@ char *process_line (char *line) } // Move files using rename() - else if (strncmp("move",tok_srch,4) == 0 || strncmp("mv", tok_srch, 2) == 0) + else if (strncmp("move",tok_srch,4) == 0) { char orig_fn[MAX_STRING_BUFSIZE]; // Should never be more than 6 characters tok_srch = strtok_next ("\""); @@ -407,7 +407,7 @@ char *process_line (char *line) // Show current directory. - else if (strncmp("showpath", tok_srch, 8) == 0 || strncmp("pwd", tok_srch, 3) == 0) + else if (strncmp("showpath", tok_srch, 8) == 0) { // Get current directory, if it errors, return NULL if (getcwd(pathbuf, sizeof(pathbuf)) == NULL) {