all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "briangpowell ." <briangpowellms@gmail.com>
To: Josef Atmin <jatmin@web.de>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
Date: Tue, 23 Feb 2016 16:31:23 -0500	[thread overview]
Message-ID: <CAFm0skETSWpMTp5baY3QCjBHmL83S5VXmBSEt=FBU3b0ipgY=A@mail.gmail.com> (raw)
In-Reply-To: <CAFm0skGXGT7aPmqD7=0ZuD0_EVtEtnMPXiP_NqoYohf-AwCTrg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3412 bytes --]

* Only way I can explain why the "3rd output is different from the 1st and
2nd":

You unwittingly placed a <Tab> character after the "::" on the 3rd row--and
you look at it and you believe its a <Space> character.

* Suggest you open it up in VI and do ":set list"--is there a "^I"
character there?

** Better yet, open the file up and use whitespace-mode in Emacs.

** Also suggest you use the POSIX compliant form for regular expressions
whenever possible--i.e. use [:blank:] when you mean " " and "[:space:]"
when you mean whitespace--that way its harder to fool yourself, and others
that read your code.






On Tue, Feb 23, 2016 at 4:11 PM, briangpowell . <briangpowellms@gmail.com>
wrote:

> * Nah, tried it, all 3 have same output:
>
>     * [[shell:cat ~/tmp | grep "asdf :"]]
>     * [[shell:cat ~/tmp | grep "asdf ::"]]
>     * [[shell:cat ~/tmp | grep "asdf :: "]]
>
> =>
>
> Executing cat ~/tmp | grep "asdf :"
> asdf :: asdf
> asdf :: qwer
> Executing cat ~/tmp | grep "asdf ::"
> asdf :: asdf
> asdf :: qwer
> Executing cat ~/tmp | grep "asdf :: "
> asdf :: asdf
> asdf :: qwer
>
>
> On Mon, Feb 22, 2016 at 3:59 AM, Josef Atmin <jatmin@web.de> wrote:
>
>> Hi,
>>
>> the maintainer of the Debian org-mode package referred me to this list
>> for my bug report.
>>
>> Best regards, Josef.
>>
>> On Sun, Feb 21, 2016 at 11:10:52AM +0100, Josef Atmin wrote:
>> > Package: org-mode
>> > Version: 8.3.3-3
>> > Severity: normal
>> >
>> > Dear Maintainer,
>> >
>> > 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.
>> >
>> > Thanks for this great piece of software, I use it all the time.
>> >
>> > Best wishes,
>> >
>> > Josef.
>> >
>> >
>> > -- System Information:
>> > Debian Release: stretch/sid
>> >   APT prefers unstable
>> >   APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
>> > Architecture: amd64 (x86_64)
>> > Foreign Architectures: i386
>> >
>> > Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
>> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
>> > Shell: /bin/sh linked to /bin/dash
>> > Init: systemd (via /run/systemd/system)
>> >
>> > Versions of packages org-mode depends on:
>> > ii  emacs24         24.5+1-6+b1
>> > ii  emacsen-common  2.0.8
>> >
>> > Versions of packages org-mode recommends:
>> > ii  texlive-generic-recommended  2015.20160215-1
>> > ii  texlive-latex-recommended    2015.20160215-1
>> >
>> > Versions of packages org-mode suggests:
>> > pn  ditaa                      <none>
>> > ii  texlive-fonts-recommended  2015.20160215-1
>> > ii  texlive-latex-extra        2015.20160117-1
>> >
>> > -- no debconf information
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 5035 bytes --]

  reply	other threads:[~2016-02-23 21:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <145604945296.31794.17323403181543491797.reportbug@garlic.spices>
2016-02-22  8:59 ` * [[shell:cat ~/tmp | grep "asdf :: "]] does not work Josef Atmin
2016-02-23 21:11   ` briangpowell .
2016-02-23 21:31     ` briangpowell . [this message]
2016-02-23 21:52       ` Josef Atmin
2016-02-24 17:38   ` Nicolas Goaziou
2016-02-24 17:56     ` Nick Dokos
2016-02-24 19:43       ` Nicolas Goaziou
2016-02-24 19:53         ` Nick Dokos
2016-02-25  1:38           ` briangpowell .
2016-02-27 10:16     ` Josef Atmin
2016-02-27 23:03       ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFm0skETSWpMTp5baY3QCjBHmL83S5VXmBSEt=FBU3b0ipgY=A@mail.gmail.com' \
    --to=briangpowellms@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jatmin@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.