[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
From: |
Josef Atmin |
Subject: |
Re: [O] * [[shell:cat ~/tmp | grep "asdf :: "]] does not work. |
Date: |
Sat, 27 Feb 2016 11:16:27 +0100 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
Dear Nicolas!
On Wed, Feb 24, 2016 at 06:38:09PM +0100, Nicolas Goaziou wrote:
> Hello,
>
> Josef Atmin <address@hidden> writes:
>
> >> when a shell command in an unnumbered list includes '::', it is not
> >> recognized as a shell
> >> command anymore.
> >>
> >> To reproduce the bug, paste the following two lines in file 'tmp'
> >>
> >> asdf :: asdf
> >> asdf :: qwer
> >>
> >> and add the following shell commands to an org file
> >>
> >> * [[shell:cat ~/tmp | grep "asdf :"]]
> >> * [[shell:cat ~/tmp | grep "asdf ::"]]
> >> * [[shell:cat ~/tmp | grep "asdf :: "]]
> >>
> >> If you klick on them you will probably find that the first two work while
> >> the last one
> >> does not, presumably because it is interpreted as a description list entry.
> >> Interestingly, if you use a numbered list
> >>
> >> 1. [[shell:cat ~/tmp | grep "asdf :"]]
> >> 2. [[shell:cat ~/tmp | grep "asdf ::"]]
> >> 3. [[shell:cat ~/tmp | grep "asdf :: "]]
> >>
> >> then all three work.
>
> This is not a bug. - .... :: *is* description list syntax, no matter how
> you look at it. You can easily work around this, e.g., by starting the
> link on the next line.
Well, one could also say [[shell:cat ~/tmp | grep "asdf :: "]] is link
syntax, no matter how you look at it. It is a question of precedence.
I think it is more obvious to interpret
* [[ ... :: ... ]] ....
as a link syntax rather than a descrition list entry.
But even if the * .... :: syntax takes precedence, then the folowing
should work, I think, but it does not.
* test :: [[shell:cat ~/tmp | grep "asdf :: "]]
If I klick on the link, I still get the errror message "No link found".
Best regards,
Josef.