github.com/NeowayLabs/nash@v0.2.2-0.20200127205349-a227041ffd50/stdbin/write/fd.go (about) 1 //+build !windows 2 3 package main 4 5 import ( 6 "io" 7 "os" 8 ) 9 10 func specialFile(path string) (io.WriteCloser, bool) { 11 if path == "/dev/stdout" { 12 return os.Stdout, true 13 } else if path == "/dev/stderr" { 14 return os.Stderr, true 15 } 16 return nil, false 17 }