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].
Commit
36bd54234bf02d1fd8a778576836dea1267d7d991755d1a720da5f8935efa342
Parent
2cf91c0c885f539…
2 files changed
+1
-1
+1
+1
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -3435,11 +3435,11 @@ | ||
| 3435 | 3435 | }else if( strchr(zIpAddr,':') ){ |
| 3436 | 3436 | zBrowserArg = mprintf("%s://[%s]:%%d/%s", zProtocol, zIpAddr, zInitPage); |
| 3437 | 3437 | }else{ |
| 3438 | 3438 | zBrowserArg = mprintf("%s://%s:%%d/%s", zProtocol, zIpAddr, zInitPage); |
| 3439 | 3439 | } |
| 3440 | - zBrowserCmd = mprintf("%s %!$ 2>/dev/null &", zBrowser, zBrowserArg); | |
| 3440 | + zBrowserCmd = mprintf("%s %!$ &", zBrowser, zBrowserArg); | |
| 3441 | 3441 | fossil_free(zBrowserArg); |
| 3442 | 3442 | } |
| 3443 | 3443 | if( zRemote ){ |
| 3444 | 3444 | /* If a USER@HOST:REPO argument is supplied, then use SSH to run |
| 3445 | 3445 | ** "fossil ui --nobrowser" on the remote system and to set up a |
| 3446 | 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 %!$ 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 @@ | ||
| 943 | 943 | if( binaryOnPath(azBrowserProg[i]) ){ |
| 944 | 944 | zBrowser = azBrowserProg[i]; |
| 945 | 945 | break; |
| 946 | 946 | } |
| 947 | 947 | } |
| 948 | + zBrowser = mprintf("%s 2>/dev/null", zBrowser); | |
| 948 | 949 | } |
| 949 | 950 | #endif |
| 950 | 951 | return zBrowser; |
| 951 | 952 | } |
| 952 | 953 | |
| 953 | 954 |
| --- 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 |