- 
                Notifications
    You must be signed in to change notification settings 
- Fork 32
Closed
Description
When trying to add a command with many parameters, task-spooler will crash at:
Line 45 in e5a9911
| error("Reading the size of the name"); | 
I'm currently using a workaround by having a script that stores the command in a variable, and then pass task-spooler a script that reads the command from the variable and execute it. But that's just a hack of course.
Here are my workaround scripts:
ts_helper with usage ts_helper OPTIONS @ LONG_COMMAND:
#!/bin/bash
IFS='@' read -ra ARGS <<< "$@";
if [ ${#ARGS[@]} -eq 2 ];
then
  SCRIPTRAW="${ARGS[1]}"
  SCRIPT="$SCRIPTRAW" ts "${ARGS[0]}" ts_helper_runner;
else
  echo "Wrong number of arguments";
fi;which calls the script ts_helper_runner:
#!/bin/bash
exec $SCRIPT
Metadata
Metadata
Assignees
Labels
No labels