On 9/25/18 3:46 PM, Chet Ramey wrote: > On 9/25/18 9:04 AM, dirk+b...@testssl.sh wrote: > >> FYI: I ended up checking with type before whether an external printf >> exists and set a variable for this and then just call this variable. >> >> env or exec: never thought about it (thanks!) but as both are external >> commands, that would mean upon every call one additional external program. >> (yes, I know that there is such thing as a fs buffer). Subshells also costs >> resources. As this is a core function I am happy for every homeopathic dose >> of time I safe here :-) > > `exec' is a shell builtin. It will `cost' in terms of a fork, but you're > going to fork and exec a different program anyway -- /usr/bin/printf -- > so it's basically a wash. In either case, there's one fork and one > execve. yeah, you're right.
- Re: bash sockets: printf \x0a does TCP fragmentation dirk+bash
- Re: bash sockets: printf \x0a does TCP fragmentation Ilkka Virta
- Re: bash sockets: printf \x0a does TCP fragmentation Bob Proulx
- Re: bash sockets: printf \x0a does TCP fragmentatio... Chet Ramey
- Re: bash sockets: printf \x0a does TCP fragment... Bob Proulx
- Re: bash sockets: printf \x0a does TCP frag... Bob Proulx
- Re: bash sockets: printf \x0a does TCP... Chet Ramey
- Re: bash sockets: printf \x0a does TCP fragment... dirk+bash
- Re: bash sockets: printf \x0a does TCP frag... Chet Ramey
- Re: bash sockets: printf \x0a does TCP... dirk+bash
- Re: bash sockets: printf \x0a does TCP... Greg Wooledge
- Re: bash sockets: printf \x0a does TCP fragmentation Robert Elz
- Re: bash sockets: printf \x0a does TCP fragmentatio... Bob Proulx
- Re: bash sockets: printf \x0a does TCP fragmentatio... Robert Elz
- Re: bash sockets: printf \x0a does TCP fragment... Bob Proulx
- Re: bash sockets: printf \x0a does TCP frag... Dirk Wetter
- Re: bash sockets: printf \x0a does TCP... Dirk Wetter
- Re: bash sockets: printf \x0a does TCP... Bob Proulx
- Re: bash sockets: printf \x0a does TCP... Dirk Wetter
- Re: bash sockets: printf \x0a does TCP... Chet Ramey