Subject: Re: RE: [ast-users] wc --bytes <<<"foo" == 4? --------
> > > > 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 This is intentional. > > > 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 > > This is a bug. David Korn [email protected] _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
