fix: commenting out some ineffective assignments.

This commit is contained in:
James Wells 2023-03-31 07:07:57 -07:00
parent 7d5c02d16b
commit ac8c225752
Signed by: jwells
GPG key ID: 73196D10B8E65666

View file

@ -147,12 +147,12 @@ func (interp *Interpreter) Eval(script string) (string, error) {
* TODO: escape handling missing!
*/
case ptSEP:
prevType = parser.Type
// prevType = parser.Type
continue
}
if parser.Type == ptEOL {
prevType = parser.Type
// prevType = parser.Type
if len(argv) != 0 {
cmd := interp.Command(argv[0])
if cmd == nil {
@ -178,7 +178,7 @@ func (interp *Interpreter) Eval(script string) (string, error) {
} else { // Interpolation
argv[len(argv)-1] = strings.Join([]string{argv[len(argv)-1], token}, "")
}
prevType = parser.Type
// prevType = parser.Type
}
return result, nil
}