Skip to content

Commit

Permalink
fix tcsh escaping (#241)
Browse files Browse the repository at this point in the history
prevent a final $ in a variable value from causing a tcsh error
  • Loading branch information
danielcavanagh authored and zimbatm committed Nov 10, 2016
1 parent 58e153f commit 151116c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell_tcsh.go
Expand Up @@ -32,11 +32,11 @@ func (f tcsh) export(key, value string) string {
}
return command + " );"
}
return "setenv " + f.escape(key) + " " + f.escape(value) + ";"
return "setenv " + f.escape(key) + " " + f.escape(value) + " ;"
}

func (f tcsh) unset(key string) string {
return "unsetenv " + f.escape(key) + ";"
return "unsetenv " + f.escape(key) + " ;"
}

func (f tcsh) escape(str string) string {
Expand Down

0 comments on commit 151116c

Please sign in to comment.