>
> Is this a bug or a feature that wc --bytes <<<"foo" returns 4? Does
> the <<<string operator add a new line at the end by default? 
 
Apparently.
 
$ od -c <<<"foo"
0000000   f   o   o  \n
0000004

 
And see also
 
$ wc --bytes <<< "$empty_string"
ksh: : cannot open
$ typeset empty_string
$ wc --bytes <<< "$empty_string"
ksh: : cannot open
$ empty_string=
$ wc --bytes <<< "$empty_string"
ksh: : cannot open

 
Janis

>
> Olga
> --
> , _ _ ,
> { \/`o;====- Olga Kryzhanovska -====;o`\/ }
> .----'-/`-/ [email protected] \-`\-'----.
> `'-..-| / http://twitter.com/fleyta \ |-..-'`
> /\/\ Solaris/BSD//C/C++ programmer /\/\
> `--` `--`
> _______________________________________________
> ast-users mailing list
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/ast-users                   
>                   
_________________________________________________________________
http://redirect.gimas.net/?n=M1005xMSNWM2
Werden Sie Deutschlands größter Fan & gewinnen Sie eine WM-Reise!
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to