From mboxrd@z Thu Jan 1 00:00:00 1970 From: "briangpowell ." Subject: Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work. Date: Tue, 23 Feb 2016 16:31:23 -0500 Message-ID: References: <145604945296.31794.17323403181543491797.reportbug@garlic.spices> <20160222085952.GA32746@garlic> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b417dc7d0a55a052c76abe0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYKYJ-0002hP-Ow for emacs-orgmode@gnu.org; Tue, 23 Feb 2016 16:31:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYKYI-0006IV-7a for emacs-orgmode@gnu.org; Tue, 23 Feb 2016 16:31:27 -0500 Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:33213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYKYH-0006IF-VW for emacs-orgmode@gnu.org; Tue, 23 Feb 2016 16:31:26 -0500 Received: by mail-ob0-x22e.google.com with SMTP id jq7so208718810obb.0 for ; Tue, 23 Feb 2016 13:31:25 -0800 (PST) In-Reply-To: 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: Josef Atmin Cc: emacs-orgmode --047d7b417dc7d0a55a052c76abe0 Content-Type: text/plain; charset=UTF-8 * Only way I can explain why the "3rd output is different from the 1st and 2nd": You unwittingly placed a character after the "::" on the 3rd row--and you look at it and you believe its a 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 . 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 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 >> > ii texlive-fonts-recommended 2015.20160215-1 >> > ii texlive-latex-extra 2015.20160117-1 >> > >> > -- no debconf information >> >> > --047d7b417dc7d0a55a052c76abe0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
* Only way I can explain why the "3rd output is diffe= rent from the 1st and 2nd":

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

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

** Better y= et, open the file up and use whitespace-mode in Emacs.

=
** Also suggest you use the POSIX compliant form for regular expressio= ns whenever possible--i.e. use=C2=A0[:blank:] when you mean " " a= nd "[:space:]" when you mean whitespace--that way its harder to f= ool yourself, and others that read your code.


=




On Tue, Feb 23, 2016 at 4:11 PM, br= iangpowell . <briangpowellms@gmail.com> wrote:
* Nah, tried it, all 3 ha= ve same output:

=C2=A0 =C2=A0 * [= [shell:cat ~/tmp | grep "asdf :"]]
=C2=A0 =C2=A0 * [[sh= ell:cat ~/tmp | grep "asdf ::"]]
=C2=A0 =C2=A0 * [[shel= l:cat ~/tmp | grep "asdf :: "]]

= =3D>

Executing cat ~/tmp | grep "asdf= :"
asdf :: asdf=C2=A0
asdf :: qwer
Exec= uting cat ~/tmp | grep "asdf ::"
asdf :: asdf=C2=A0
asdf :: qwer
Executing cat ~/tmp | grep "asdf :: &quo= t;
asdf :: asdf=C2=A0
asdf :: qwer

=

On Mon, Feb 22, 2016 at 3:59 AM, Josef A= tmin <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 i= s not recognized as a shell
> command anymore.
>
> To reproduce the bug, paste the following two lines in file 'tmp&#= 39;
>
>=C2=A0 =C2=A0asdf :: asdf
>=C2=A0 =C2=A0asdf :: qwer
>
> and add the following shell commands to an org file
>
>=C2=A0 =C2=A0 * [[shell:cat ~/tmp | grep "asdf :"]]
>=C2=A0 =C2=A0 * [[shell:cat ~/tmp | grep "asdf ::"]]
>=C2=A0 =C2=A0 * [[shell:cat ~/tmp | grep "asdf :: "]]
>
> If you klick on them you will probably find that the first two work wh= ile the last one
> does not, presumably because it is interpreted as a description list e= ntry.
> Interestingly, if you use a numbered list
>
>=C2=A0 =C2=A0 1. [[shell:cat ~/tmp | grep "asdf :"]]
>=C2=A0 =C2=A0 2. [[shell:cat ~/tmp | grep "asdf ::"]]
>=C2=A0 =C2=A0 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
>=C2=A0 =C2=A0APT prefers unstable
>=C2=A0 =C2=A0APT policy: (500, 'unstable'), (500, 'testing&= #39;), (500, 'stable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8) > Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages org-mode depends on:
> ii=C2=A0 emacs24=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A024.5+1-6+b1
> ii=C2=A0 emacsen-common=C2=A0 2.0.8
>
> Versions of packages org-mode recommends:
> ii=C2=A0 texlive-generic-recommended=C2=A0 2015.20160215-1
> ii=C2=A0 texlive-latex-recommended=C2=A0 =C2=A0 2015.20160215-1
>
> Versions of packages org-mode suggests:
> pn=C2=A0 ditaa=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 <none>
> ii=C2=A0 texlive-fonts-recommended=C2=A0 2015.20160215-1
> ii=C2=A0 texlive-latex-extra=C2=A0 =C2=A0 =C2=A0 =C2=A0 2015.20160117-= 1
>
> -- no debconf information



--047d7b417dc7d0a55a052c76abe0--