git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Help a sed noob
@ 2007-08-03 23:22 Nguyen Thai Ngoc Duy
  2007-08-03 23:38 ` Junio C Hamano
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2007-08-03 23:22 UTC (permalink / raw)
  To: Git Mailing List

Hi,

There is a construct like this in git-parse-remote.sh which makes
busybox ash unhappy:

                sed -ne '/^URL: */{
                        s///p
                        q
                }' "$GIT_DIR/remotes/$1"

It complains about "no previous regexp" while gnu sed is ok. Can
anyone explain to me what does "s///p" do? GNU Sed info page says
nothing about empty regexp. If I replace it with "s/\(.*\)/\1/p" then
I get "URL: " along with the remote path.

By the way, can we use another construct instead? It would be less
work for me ;-)
-- 
Duy

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-08-04 14:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-03 23:22 Help a sed noob Nguyen Thai Ngoc Duy
2007-08-03 23:38 ` Junio C Hamano
2007-08-04  0:06   ` Nguyen Thai Ngoc Duy
2007-08-03 23:40 ` René Scharfe
2007-08-04 10:31 ` martin f krafft
2007-08-04 11:50   ` Jeff King
2007-08-04 12:18     ` martin f krafft
2007-08-04 12:26       ` Simon 'corecode' Schubert
2007-08-04 13:56         ` martin f krafft
2007-08-04 14:06           ` David Kastrup
2007-08-04 12:40       ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).