This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Shell-style programming in Kawa


On Jan 28, 2014, at 1:44 AM, Per Bothner <per@bothner.com> wrote:

> On 01/27/2014 07:46 AM, Per Bothner wrote:
>> On 01/25/2014 11:46 PM, Jamison Hope wrote:
>>> Is there a way to make this do what I intend?
>>> 
>>>    &`{ls &`{pwd}/..}
>> 
>> This still doesn't work,
> 
> Now it does - it was actually a simple 1-token fix.

Nice.  If I'm following the trail correctly, that was changing a
format directive from ~A to ~Q.  Is this ~Q directive ever useful
in user code?  It isn't documented on the Format page of the
website.

It looks like it acts as if the format specifier were
"\xF202~A\xF203", where #\xf202 and #\xf203 are unassigned
characters from one of the Unicode Private Use Areas.  And then
the consumer of the resultant string is responsible for recognizing
these embedded unprintable marks and doing something useful (such
as stripping out a trailing newline).  Is that right?

--
Jamison Hope
The PTR Group
www.theptrgroup.com




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]