Shell.SetMergeErrorAndOutput
----------------------------

Sets whether to use one pipe or two pipes for output and error.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Shell](component_Shell.md) | [15.0](newinversion150.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Shell.SetMergeErrorAndOutput"; ShellRef; Value ) 

**MBS**( **"Shell.SetMergeErrorAndOutput";** /\* Sets whether to use one pipe or two pipes for output and error. \*/  
**$ShellRef**; /\* The reference number from the shell.e.g. $shell \*/   
**$Value**) /\* The new setting.  
Pass 1 to merge or 0 to leave split.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ShellRef | The reference number from the shell. | $shell |
| Value | The new setting.   Pass 1 to merge or 0 to leave split. | 1 |

### Result

Returns OK or error.

### Description

Sets whether to use one pipe or two pipes for output and error.  
### Examples

Use one pipe for error and output:

 Set Variable \[ $r ; Value: MBS ("Shell.SetMergeErrorAndOutput"; $shell ; 1) \]  
### See also

- [Shell.GetMergeErrorAndOutput](ShellGetMergeErrorAndOutput.md)

### Release notes

- **Version 15.0**
    - Added [Shell.SetMergeErrorAndOutput](https://www.mbsplugins.eu/ShellSetMergeErrorAndOutput.shtml) and [Shell.GetMergeErrorAndOutput](https://www.mbsplugins.eu/ShellGetMergeErrorAndOutput.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 15.0](https://www.mbsplugins.de/archive/2025-01-21/New_in_MBS_FileMaker_Plugin_15/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.0pr7](https://www.mbsplugins.de/archive/2025-01-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 30th December 2024 , last changed 31st December 2024

  
[Shell.SetDomain](ShellSetDomain.md) - [Shell.SetPassword](ShellSetPassword.md)

[HTML Version](ShellSetMergeErrorAndOutput.shtml)