You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Try truncating a file that doesn't exist
What is the expected output?
truncate file=/path/to/file: no such file or directory
What do you see instead?
truncate ile=/path/to/file: no such file or directory
Which compiler are you using (5g, 6g, 8g, gccgo)?
Which operating system are you using?
Mac OSX Mountain Lion
Which version are you using? (run 'go version')
1.1.2
Please provide any additional information below.
Just a typo in the error message...
The text was updated successfully, but these errors were encountered:
I am not able to reproduce the issue
lucky(~/src) % cat truncate.go
package main
import "fmt"
import "os"
func main() {
fmt.Println(os.Truncate("/yolo", 0))
}
# linux
lucky(~/src) % go run truncate.go
truncate /yolo: no such file or directory
# osx mountain lion
odessa(~/src) % go run truncate.go
truncate /yolo: no such file or directory
Can you please update to Go 1.2 and try again, this issue may have already been fixed.
In walking back through this to see why it isn't reproducible, I found that the file
path was being incorrectly parsed (i.e. the ile= was coming from inside the program). My
apologies for that.
Cheers,
Abel
by abel@rewardstyle.com:
The text was updated successfully, but these errors were encountered: