Re: [wmii] Re: issue with personnal wmiirc file

From: Thomas Gallen <kaori.hinata_AT_gmail.com>
Date: Mon, 12 Jan 2009 16:51:06 -0500

I believe what he intended was to escape the backtick (`). I believe a
single backtick before a bracketed command is an rc escape (as in shell
escape) to run a command. Kinda like bash's `` and $().

What Kris's command does is write the line "exec `{wi_script}" to the
file "rc.wmii.local" so that it executes wmiirc (the shell equivalent of
the rc script rc.wmii/rc.wmii.local). This way, even if 9base is
installed and tries to run the rc script instead, the local rc script
then calls the shell script wmiirc.

Just escape the backtick:

[foo_AT_bar ~]$ cat << EOF > .wmii-hg/rc.wmii.local
> exec \`{wi_script wmiirc}
> EOF

Thomas

On Mon, Jan 12, 2009 at 10:37:39PM +0100, Julien Pecqueur (JPEC) wrote:
> Kris Maglione wrote:
>> On Mon, Jan 12, 2009 at 09:16:13PM +0100, Julien Pecqueur (JPEC) wrote:
>>> In the console i've probably found a way : i can see a message like >>>
>>> /usr/bin/wmii9rc : found rc but not read - you probably have an out of
>>> date 9base installed.
>>
>> If you have 9base installed, wmii runs rc.wmii instead of wmiirc. Just do,
>>
>> cat <<EOF >.wmii-hg/rc.wmii.local
>> exec `{wi_script wmiirc}
>> EOF
>> chmod +x .wmii-hg/rc.wmii.local
>>
> Are you sure of the ` before {wi_script wmiirc}??
>
> Result of the command :
> [jpec_AT_WindU100X ~]$ cat <<EOF >.wmii-hg/rc.wmii.local
> > exec `{wi_script wmiirc}
> > EOF
> bash: bad substitution: no closing "`" in `{wi_script wmiirc}
>
> So i add a "`" at the end...
>
> But mokeys are not yet modified :'(
>
Received on Mon Jan 12 2009 - 21:51:06 UTC

This archive was generated by hypermail 2.2.0 : Mon Jan 12 2009 - 22:00:07 UTC