From: Kirill Smelkov <kirr@landau.phys.spbu.ru>
To: martin f krafft <madduck@madduck.net>
Cc: Thomas Rast <trast@student.ethz.ch>,
Bert Wesarg <bert.wesarg@googlemail.com>,
Pierre Habouzit <madcoder@debian.org>,
Petr Baudis <pasky@suse.cz>,
git@vger.kernel.org
Subject: Re: [PATCH (topgit) 1/2] Implement setup_pager just like in git
Date: Thu, 8 Jan 2009 12:23:04 +0300 [thread overview]
Message-ID: <20090108092304.GA4835@roro3> (raw)
In-Reply-To: <20090108020650.GC7345@lapse.rw.madduck.net>
On Thu, Jan 08, 2009 at 03:06:50PM +1300, martin f krafft wrote:
> also sprach Kirill Smelkov <kirr@landau.phys.spbu.ru> [2009.01.08.1100 +1300]:
> > > So I suppose you could use
> > >
> > > ${GIT_PAGER-${PAGER-less}}
> > >
> > > or similar.
> >
> > Good eyes, thanks!
> >
> > I'll rework it.
>
> I am not 100% on this, but I think nested {}'s are a bashism.
It seems to be ok:
kirr@roro3:~$ dash
$ unset GIT_PAGER
$ unset PAGER
$ echo ${GIT_PAGER-${PAGER-less}}
less
$ PAGER=more
$ echo ${GIT_PAGER-${PAGER-less}}
more
$ GIT_PAGER=''
$ echo ${GIT_PAGER-${PAGER-less}}
$ GIT_PAGER=/bin/cat
$ echo ${GIT_PAGER-${PAGER-less}}
/bin/cat
> > On Wed, Jan 07, 2009 at 03:24:02PM +0100, Bert Wesarg wrote:
> > > On Wed, Jan 7, 2009 at 12:27, Kirill Smelkov <kirr@landau.phys.spbu.ru> wrote:
> > > > Martin, thanks for your review.
> > > > + # atexit(close(1); wait pager)
> > > > + trap "exec >&-; rm "$_pager_fifo"; rmdir "$_pager_fifo_dir"; wait" EXIT
> > > I think you need to escape the double quotes.
> >
> > Good eyes -- corrected and thanks!
>
> You could also just use single quotes inside the double quotes.
Thanks for the tip - I'll keep it in mind. Or is it the preferred way?
Thanks,
Kirill
next prev parent reply other threads:[~2009-01-08 9:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 15:16 [PATCH (topgit) 0/2] tg-patch: fix pagination Kirill Smelkov
2009-01-06 15:16 ` [PATCH (topgit) 1/2] Implement setup_pager just like in git Kirill Smelkov
2009-01-06 20:32 ` martin f krafft
2009-01-07 10:35 ` Adeodato Simó
2009-01-07 11:27 ` Kirill Smelkov
2009-01-07 12:24 ` Thomas Rast
2009-01-07 22:00 ` Kirill Smelkov
2009-01-08 2:06 ` martin f krafft
2009-01-08 9:23 ` Kirill Smelkov [this message]
2009-01-07 14:24 ` Bert Wesarg
2009-01-07 14:44 ` Pierre Habouzit
2009-01-07 15:10 ` Petr Baudis
2009-01-06 15:16 ` [PATCH (topgit) 2/2] tg-patch: fix pagination Kirill Smelkov
2009-01-18 15:04 ` [PATCH (topgit) 0/2] " Kirill Smelkov
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=20090108092304.GA4835@roro3 \
--to=kirr@landau.phys.spbu.ru \
--cc=bert.wesarg@googlemail.com \
--cc=git@vger.kernel.org \
--cc=madcoder@debian.org \
--cc=madduck@madduck.net \
--cc=pasky@suse.cz \
--cc=trast@student.ethz.ch \
/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.
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.