[PATCH build 02/10] Provide a visual break between components.

Trevor Woerner twoerner at gmail.com
Sat Sep 18 19:00:31 PDT 2010


On Sat, Sep 18, 2010 at 9:43 PM, Gaetan Nadon <memsize at videotron.ca> wrote:
> On Sat, 2010-09-18 at 21:24 -0400, Trevor Woerner wrote:
>
> That doesn't make any sense to me (I hope someone can explain it).
> module_title is a function, I can't understand how assigning a value
> to a function will invoke it. With your change, is the function being
> invoked with "$1/$2" as its one argument?
>
> It avoided calling the function and just made an assignment.
>
> It chokes on ${_line:${#1}}.
>
> The length operator returns 7 (because app/xdm has 7 characters) which leads
> to ${_line:7}.
> I have no idea of what this is supposed to do, yet.

It's a substring operation.

echo "${_line:7}"

is supposed to print the variable $_line starting from the 7th
character. That way all the titles are supposed to line up. But I
guess substring notation is not portable... :-)

(the following works with a mono-spaced typeface, all the right-hand
sides line up)

=== util/macros  =============================================================
=== font/util  ===============================================================
=== proto/bigreqsproto  ======================================================
=== proto/compositeproto  ====================================================
=== proto/damageproto  =======================================================
=== proto/dmxproto  ==========================================================
=== proto/dri2proto  =========================================================
=== proto/fixesproto  ========================================================
=== proto/fontsproto  ========================================================
=== proto/glproto  ===========================================================
=== proto/inputproto  ========================================================
=== proto/kbproto  ===========================================================
=== proto/randrproto  ========================================================
=== proto/recordproto  =======================================================
=== proto/renderproto  =======================================================
=== proto/resourceproto  =====================================================
=== proto/scrnsaverproto  ====================================================
=== proto/videoproto  ========================================================
=== proto/x11proto  ==========================================================
=== proto/xcmiscproto  =======================================================
=== proto/xextproto  =========================================================
=== proto/xf86bigfontproto  ==================================================
=== proto/xf86dgaproto  ======================================================
...


More information about the xorg-devel mailing list