From: Colin P. McCabe <cmccabe@apache.org>
Date: Sun, 29 Dec 2024 23:14:09 +0000 (-0800)
Subject: open: put new process in the background
X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a3c742129fc221bb278d803476ee9342c3895d8;p=cmccabe-bin

open: put new process in the background
---

diff --git a/open b/open
index a965886..f2b8f05 100755
--- a/open
+++ b/open
@@ -11,11 +11,11 @@ openwith() {
     application="${2}"
     if [[ -n "${application}" ]]; then
         if which "${application}" > /dev/null ; then
-            setsid nohup ${application} "${f}" > /dev/null 2> /dev/null 
+            setsid nohup ${application} "${f}" > /dev/null 2> /dev/null &
             return
         fi
     fi
-    setsid nohup xdg-open "${f}" > /dev/null 2> /dev/null 
+    setsid nohup xdg-open "${f}" > /dev/null 2> /dev/null &
 }
 
 # Determine what command to run based on file extension.