This is for an assignment for a class. I am a novice at this and I am kind of lost. I keep on getting sybtax errors on line 6 near Tuseday. Here is the code. Any help would be great.

#!/bin/bash
echo choose a day
echo Monday, Tuseday, Wednesday, Thursday, Friday, Saturday, Sunday
function days ()
{
if [[ Monday, Tuseday, Wednesday ]]
then
            ttdl.exe
else
            homework/ttdl.exe
fi
}
function day ()
{
if [[ Friday, Saturday, Sunday ]]
then
           echo go play
else
           ttdl.exe
fi
}

You need an expression inside [[ ... ]].
Read the bash man page.

A better contruct would be to use a case statement.

It's not clear from your script exactly what you are trying to do. Please expand.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.