> I don't believe there is a good way of preserving quotes (') in $*. I
> ran into this while trying to:
> 
> % window winwatch -e '^(winwatch|stats|faces)'  # will not work
> % window winwatch -e '''^(winwatch|stats|faces)'''  # works
> 
> I think this comes down to how quotes are handled in $*:
> 
> % tail -1 /rc/bin/window    # the relevant line
> if not echo new -cd `{pwd} $* >> `{getwctl}
> 
> having to stack quotes manually makes interactions like cut-paste
> awkward/unusable.

The real problem is that when rio(1) reads what window(1) writes to
the wctl file this gets passed to an invocation of `rc -c ...` which
means you end up going through eval again.

--
Cheers,
Alex Musolino


------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te16808448e498abd-M34a25487ecde410da7497470
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to