3 source $FEISTY_MEOW_SCRIPTS/core/functions.sh
5 function dossify_and_run_commands()
7 declare -a darc_commands=()
10 # we only mess with the command line on windows.
11 if [ "$OS" == "Windows_NT" ]; then
12 if [[ "$i" =~ ^-[a-zA-z][/\"].* ]]; then
13 #echo matched on our pattern for parameters
15 filename="$(unix_to_dos_path ${i:2})"
17 #echo "first two chars are $flag"
18 #echo "last after that are $filename"
19 #combined="$flag$filename"
20 #echo combined is $combined
22 darc_commands+=("$flag$filename")
24 darc_commands+=($(unix_to_dos_path $i))
32 echo commands are now: >>/tmp/wrapdoze.log
33 for i in "${darc_commands[@]}"; do
34 echo $i >>/tmp/wrapdoze.log
38 # now actually run the possibly chewed command.
42 dossify_and_run_commands "$@"