// GetWD returns a string representation of the current working directory.
// ~ is returned if any error occurred (e. g. the directory was deleted).
GetWD returns a string representation of the current working directory.
~ is returned if any error occurred (e. g. the directory was deleted).
// GetWD returns a string representation of the current working directory . // ~ is returned if any error occurred ( e . g . the directory was deleted ) .
func (g *Gosh) GetWD() string {
	wd, err := os.Getwd()
	if err != nil {
		return "~"
	}
	return wd
}
func ( g * Gosh ) GetWD ( ) string { wd , err := os . Getwd ( ) if err != nil { return " " } return wd }
GetWD returns a string representation of the current working directory.
GetWD returns a string representation of the current working directory .