#!/bin/sh doesn't show

cortman c0rtm4n at gmail.com
Sat Sep 29 13:52:29 UTC 2012


This would make sense. We'll use this fix until/unless a better fix comes along.
Thanks, Jared!

Regards,
Cortman


On Sat, Sep 29, 2012 at 8:43 AM, Jared Norris <jrnorris at gmail.com> wrote:
> On 24 September 2012 22:39, cortman <c0rtm4n at gmail.com> wrote:
>> Hi,
>>
>> Why is it that when you write out a script in moin moin and put it
>> between code tags-
>>
>> {{{
>> #!/bin/sh
>> exec tail -n +3 $0
>> # This file provides an easy way to add custom menu entries.  Simply type the
>> # menu entries you want to add after this comment.  Be careful not to change
>> # the 'exec tail' line above.
>> }}}
>>
>> the #!/bin/sh disappears in the finished wiki? It's still in the
>> syntax but doesn't show up when viewed.
>> We're trying to transfer information from the Ubuntu forums to the
>> wiki, so it is more widely available, but when it randomly removes
>> important parts of code, that's a problem.
>> Thanks for your attention.
>>
>> Regards,
>> Cortman
>>
>> --
>> ubuntu-doc mailing list
>> ubuntu-doc at lists.ubuntu.com
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-doc
>
> From what I have done in the past I think it's trying to use the first
> line as a formatting mark for the code section (as described in the
> help [1]). If you double up the #!/bin/sh it still outputs a single
> line which is what you're trying to get. So as a workaround I'd
> suggest adding a line with the same #!/bin/sh and the outcome will be
> what you're expecting. So as much as I can explain the result, I am
> not certain the best way to achieve what you're trying to achieve
> without the ugly workaround. Maybe someone else can suggest something
> but I thought understanding why might help.
>
> [1] https://wiki.ubuntu.com/HelpOnFormatting#code_example
>
> --
> Regards,
>
> Jared Norris
> https://wiki.ubuntu.com/JaredNorris



More information about the ubuntu-doc mailing list