OLDPS1=$PS1 PS1='$' date clear PS1=$OLDPS1 date Create a list of legal and illegal bash variable names. Describe why each is either legal or illegal. Are you calling it with the full path name or as "date". find that the PATH is different or that some other environment variable is set differently. Error: Illegal variable name, The given name 'Ateam' does not conform to the naming rule /^((::)?[a-z]\w*)*((::)?[a-z_]\w*)$/ at line Error: Illegal variable name.
illegal variable name