Re: RFE: a way to echo the arguments with quoting

2014-03-09 Thread Mike Frysinger
On Sun 02 Mar 2014 10:12:04 Andreas Schwab wrote: > Dave Yost writes: > > I have an ugly function I wrote for zsh that does this: > > > > Sat 14:17:25 ip2 yost /Users/yost > > 1 634 Z% echo-quoted xyz \$foo 'a b c ' '\n' > > xyz '$foo' 'a b c ' '\n' > > Sat 14:17:53 ip2 yost /Users/yost > > 0 63

Re: RFE: a way to echo the arguments with quoting

2014-03-02 Thread Andreas Schwab
Dave Yost writes: > I have an ugly function I wrote for zsh that does this: > > Sat 14:17:25 ip2 yost /Users/yost > 1 634 Z% echo-quoted xyz \$foo 'a b c ' '\n' > xyz '$foo' 'a b c ' '\n' > Sat 14:17:53 ip2 yost /Users/yost > 0 635 Z% > > It would be nice if there were an easy way to do this in

Re: RFE: a way to echo the arguments with quoting

2014-03-01 Thread Eduardo A . Bustamante López
On Sat, Mar 01, 2014 at 02:34:56PM -0800, Dave Yost wrote: > I have an ugly function I wrote for zsh that does this: > > Sat 14:17:25 ip2 yost /Users/yost > 1 634 Z% echo-quoted xyz \$foo 'a b c ' '\n' > xyz '$foo' 'a b c ' '\n' > Sat 14:17:53 ip2 yost /Users/yost > 0 635 Z% > > It would be nic

RFE: a way to echo the arguments with quoting

2014-03-01 Thread Dave Yost
I have an ugly function I wrote for zsh that does this: Sat 14:17:25 ip2 yost /Users/yost 1 634 Z% echo-quoted xyz \$foo 'a b c ' '\n' xyz '$foo' 'a b c ' '\n' Sat 14:17:53 ip2 yost /Users/yost 0 635 Z% It would be nice if there were an easy way to do this in bash. Here is my use case: echo-c