Fossil SCM

Change the previous check-in so that "2>/dev/null" is only added on unix, not on Windows or Mac. Suggested by [forum:/forumpost/ae7ed5b615|forum post ae7ed5b615].

drh 2025-01-11 13:07 trunk
Commit 36bd54234bf02d1fd8a778576836dea1267d7d991755d1a720da5f8935efa342
2 files changed +1 -1 +1
+1 -1
--- src/main.c
+++ src/main.c
@@ -3435,11 +3435,11 @@
34353435
}else if( strchr(zIpAddr,':') ){
34363436
zBrowserArg = mprintf("%s://[%s]:%%d/%s", zProtocol, zIpAddr, zInitPage);
34373437
}else{
34383438
zBrowserArg = mprintf("%s://%s:%%d/%s", zProtocol, zIpAddr, zInitPage);
34393439
}
3440
- zBrowserCmd = mprintf("%s %!$ 2>/dev/null &", zBrowser, zBrowserArg);
3440
+ zBrowserCmd = mprintf("%s %!$ &", zBrowser, zBrowserArg);
34413441
fossil_free(zBrowserArg);
34423442
}
34433443
if( zRemote ){
34443444
/* If a USER@HOST:REPO argument is supplied, then use SSH to run
34453445
** "fossil ui --nobrowser" on the remote system and to set up a
34463446
--- src/main.c
+++ src/main.c
@@ -3435,11 +3435,11 @@
3435 }else if( strchr(zIpAddr,':') ){
3436 zBrowserArg = mprintf("%s://[%s]:%%d/%s", zProtocol, zIpAddr, zInitPage);
3437 }else{
3438 zBrowserArg = mprintf("%s://%s:%%d/%s", zProtocol, zIpAddr, zInitPage);
3439 }
3440 zBrowserCmd = mprintf("%s %!$ 2>/dev/null &", zBrowser, zBrowserArg);
3441 fossil_free(zBrowserArg);
3442 }
3443 if( zRemote ){
3444 /* If a USER@HOST:REPO argument is supplied, then use SSH to run
3445 ** "fossil ui --nobrowser" on the remote system and to set up a
3446
--- src/main.c
+++ src/main.c
@@ -3435,11 +3435,11 @@
3435 }else if( strchr(zIpAddr,':') ){
3436 zBrowserArg = mprintf("%s://[%s]:%%d/%s", zProtocol, zIpAddr, zInitPage);
3437 }else{
3438 zBrowserArg = mprintf("%s://%s:%%d/%s", zProtocol, zIpAddr, zInitPage);
3439 }
3440 zBrowserCmd = mprintf("%s %!$ &", zBrowser, zBrowserArg);
3441 fossil_free(zBrowserArg);
3442 }
3443 if( zRemote ){
3444 /* If a USER@HOST:REPO argument is supplied, then use SSH to run
3445 ** "fossil ui --nobrowser" on the remote system and to set up a
3446
+1
--- src/util.c
+++ src/util.c
@@ -943,10 +943,11 @@
943943
if( binaryOnPath(azBrowserProg[i]) ){
944944
zBrowser = azBrowserProg[i];
945945
break;
946946
}
947947
}
948
+ zBrowser = mprintf("%s 2>/dev/null", zBrowser);
948949
}
949950
#endif
950951
return zBrowser;
951952
}
952953
953954
--- src/util.c
+++ src/util.c
@@ -943,10 +943,11 @@
943 if( binaryOnPath(azBrowserProg[i]) ){
944 zBrowser = azBrowserProg[i];
945 break;
946 }
947 }
 
948 }
949 #endif
950 return zBrowser;
951 }
952
953
--- src/util.c
+++ src/util.c
@@ -943,10 +943,11 @@
943 if( binaryOnPath(azBrowserProg[i]) ){
944 zBrowser = azBrowserProg[i];
945 break;
946 }
947 }
948 zBrowser = mprintf("%s 2>/dev/null", zBrowser);
949 }
950 #endif
951 return zBrowser;
952 }
953
954

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button