Re: Problem with positional output

"[email protected] [sed-users]" <[email protected]> 16 Nov 2016 15:19:36 -0800
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
Actually you can do away with the quotes around the $3 also since we know that the pipe will never appear in $3 and hence
 the split of an unquoted $3 won't happen. Also the set -f will
 ensure that any globbing characters that happen to be in $3
 will be left unexpanded.
 

---In [email protected], <gjthill@...> wrote :

 > I don't see the need for the noglob here
 
 oops.
 
 (IFS=\|;set -f;set -- $RETVAL;printf %s\\n "$3")
 
 as Stephane said. Should have listened to that little "are you sure?" voice.




[Non-text portions of this message have been removed]