From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josef Atmin Subject: Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work. Date: Sat, 27 Feb 2016 11:16:27 +0100 Message-ID: <20160227101627.GD25757@garlic> References: <145604945296.31794.17323403181543491797.reportbug@garlic.spices> <20160222085952.GA32746@garlic> <878u2a57r2.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZbvR-0005Dw-1W for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 05:16:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZbvN-0001x3-PQ for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 05:16:36 -0500 Received: from out2.mail.ruhr-uni-bochum.de ([134.147.42.229]:58851 helo=mx2.mail.ruhr-uni-bochum.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZbvN-0001uX-JE for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 05:16:33 -0500 Content-Disposition: inline In-Reply-To: <878u2a57r2.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Dear Nicolas! On Wed, Feb 24, 2016 at 06:38:09PM +0100, Nicolas Goaziou wrote: > Hello, > > Josef Atmin 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.