• Fazlul Shahriar's avatar
    gofmt: use os.Stdin instead of opening /dev/stdin · db18ce2f
    Fazlul Shahriar authored
    Opening /dev/stdin can sometimes fail. For example, in the acme editor,
    executing "Edit ,|gofmt" fails with:
    
    	open /dev/stdin: no such device or address
    
    Executing "Edit ,|ls -l /dev/stdin /proc/self/fd/0" gives:
    
    	lrwxrwxrwx 1 root root  15 2009-09-07 02:17 /dev/stdin -> /proc/self/fd/0
    	lrwx------ 1 fhs  users 64 2009-11-26 22:05 /proc/self/fd/0 -> socket:[5528230]
    
    (This is my first change, and I've signed the individual contributor license agreement.)
    
    R=rsc, gri
    CC=golang-dev
    https://golang.org/cl/162041
    db18ce2f
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libcgo Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.386 Loading commit data...
Make.amd64 Loading commit data...
Make.arm Loading commit data...
Make.cmd Loading commit data...
Make.conf Loading commit data...
Make.pkg Loading commit data...
all-arm.bash Loading commit data...
all-nacl.bash Loading commit data...
all.bash Loading commit data...
clean.bash Loading commit data...
make-arm.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...