BBC.SHARED.JOBI.TEMPFILE-ADD
Description
Details
Property | Value |
---|---|
Type | JOBI |
Folder | PACKAGES/BEST-BLU/BBC.SHARED/SOURCE/TEMPFILES |
Title | Adds text to a temporary file |
Archive Key 1 | - |
Archive Key 2 | - |
Created | Andreas Büsching am: 2020-09-09 15:27:56 |
Last Modified | Andreas Büsching am: 2025-07-04 16:47:05 31 x |
Last Used | - |
Process
:switch &$PLATFORM#
:case "UNIX"
: set &item# = resolve_var( "$ENTRY$" )
:set "ed# = "'"
:set "ed# = str_cat( "ed#, '"' )
:set "ed# = str_cat( "ed#, "'" )
:set "ed# = str_cat( "ed#, '"' )
:set "ed# = str_cat( "ed#, "'" )
:set &item# = str_sub( &item#, "'", "ed# )
echo '&item#' >> $bbcs_temp_file
:case "WINDOWS"
: inc BBC.SHARED.JOBI.ESCAPE4POWERSHELL $STRING$ = "$ENTRY$"
"&BBCS_ESCAPED_STRING_O#" | Add-Content $bbcs_temp_file.fullName
:other
: p "unsupported platform &$PLATFORM#"
:endswitch