Couple changes, removed mv and pwd alias in order to call system utils
This commit is contained in:
parent
423d3c6f43
commit
2326810ed7
@ -30,7 +30,7 @@ ss_stringdata=Data to encrypt and decrypt
|
|||||||
ss_exec_command=uname -a
|
ss_exec_command=uname -a
|
||||||
|
|
||||||
# Printing function in SS
|
# Printing function in SS
|
||||||
===============print "Welcome to SlideScript!"
|
print "Welcome to SlideScript!"
|
||||||
# Sleep function in SS
|
# Sleep function in SS
|
||||||
print "Some content to print, working with '%ss_filename%' today!"
|
print "Some content to print, working with '%ss_filename%' today!"
|
||||||
# Below demonstrates SS encrypting a string, passing the output
|
# Below demonstrates SS encrypting a string, passing the output
|
||||||
|
@ -349,7 +349,7 @@ char *process_line (char *line)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Move files using rename()
|
// 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
|
char orig_fn[MAX_STRING_BUFSIZE]; // Should never be more than 6 characters
|
||||||
tok_srch = strtok_next ("\"");
|
tok_srch = strtok_next ("\"");
|
||||||
@ -407,7 +407,7 @@ char *process_line (char *line)
|
|||||||
|
|
||||||
|
|
||||||
// Show current directory.
|
// 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
|
// Get current directory, if it errors, return NULL
|
||||||
if (getcwd(pathbuf, sizeof(pathbuf)) == NULL) {
|
if (getcwd(pathbuf, sizeof(pathbuf)) == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user