qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] configure: remove bashism (since 2010)
@ 2015-12-10  0:53 marcandre.lureau
  2015-12-10  0:57 ` Marc-André Lureau
  2015-12-10  2:51 ` Eric Blake
  0 siblings, 2 replies; 5+ messages in thread
From: marcandre.lureau @ 2015-12-10  0:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau

From: Marc-André Lureau <marcandre.lureau@redhat.com>

"type" is not POSIX shell, but a bashism. (found thanks to shellcheck)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index ba57b3f..90eff82 100755
--- a/configure
+++ b/configure
@@ -158,7 +158,7 @@ symlink() {
 # check whether a command is available to this shell (may be either an
 # executable or a builtin)
 has() {
-    type "$1" >/dev/null 2>&1
+    which "$1" >/dev/null 2>&1
 }
 
 # search for an executable in PATH
-- 
2.5.0

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

end of thread, other threads:[~2015-12-10  9:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-10  0:53 [Qemu-devel] [PATCH] configure: remove bashism (since 2010) marcandre.lureau
2015-12-10  0:57 ` Marc-André Lureau
2015-12-10  2:52   ` Eric Blake
2015-12-10  2:51 ` Eric Blake
2015-12-10  9:46   ` Marc-André Lureau

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).