From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: Jon Stanley <jonstanley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
Subject: Re: [PATCH] infiniband-diags: Remove Red Hat-ism.
Date: Mon, 3 Dec 2012 15:35:47 -0700 [thread overview]
Message-ID: <20121203223547.GA3410@obsidianresearch.com> (raw)
In-Reply-To: <1354566498-8364-1-git-send-email-jonstanley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On Mon, Dec 03, 2012 at 03:28:18PM -0500, Jon Stanley wrote:
> Future release of Fedora are going to remove /etc/sysconfig/network
> which we source to get $HOSTNAME. Bash (and sh) set $HOSTNAME in
> the shell by default, so we should be safe to use that here. This
> adds the benefit of working across multiple distributions if that
> is required in the future.
This looks like it is a bashism (ie dash does not do this), so you
should update the #! to use /bin/bash not /bin/sh...
$ HOSTNAME= /bin/dash
\h{\u}\w#echo $HOSTNAME
\h{\u}\w#
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-12-03 22:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 20:28 [PATCH] infiniband-diags: Remove Red Hat-ism Jon Stanley
[not found] ` <1354566498-8364-1-git-send-email-jonstanley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-12-03 22:35 ` Jason Gunthorpe [this message]
[not found] ` <20121203223547.GA3410-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2012-12-04 13:40 ` Jon Stanley
[not found] ` <CALY6xnj_OYpQFiCSC4T3cY3yup6ZXXJR=QDDCaJN96gEyvFP5w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-12-04 16:31 ` Garrett Cooper
2012-12-04 18:11 ` Jason Gunthorpe
[not found] ` <20121204181131.GC21196-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2012-12-04 19:48 ` Garrett Cooper
[not found] ` <CAGH67wQrOFpEK4PWK858tuf3yVEzr4D9kWoPuLJCte8wocpAkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-13 22:11 ` Ira Weiny
2012-12-04 16:33 ` Garrett Cooper
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=20121203223547.GA3410@obsidianresearch.com \
--to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=jonstanley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=weiny2-i2BcT+NCU+M@public.gmane.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox