Intentions of BashSupport Pro

BashSupport Pro provides intentions to help you change common aspects of shell scripts efficiently.

Convert to Quoted String

Convert a single-quoted string like 'text' or a plain, unquoted word like text into an equivalent double-quoted string.

Context
Single-quoted strings and unquoted text.
Before 'Convert to quoted string'
Before 'Convert to quoted string'
After 'Convert to quoted string'
After 'Convert to quoted string'

Convert to Raw String

Convert a double-quoted string into an equivalent single-quoted string.

Context
Double-quoted strings, which only contain static values. String with variable references, subshells or other dynamic content are excluded from this intention.
Before 'Convert to raw string'
Before 'Convert to raw string'
After 'Convert to raw string'
After 'Convert to raw string'

Convert to Unquoted Literal

Convert a single-quoted or double-quoted string into a text literal without quotes. Special characters are escaped, when needed.

Context
Single quoted and double-quoted strings.
Before 'Convert to unquoted literal'
Before 'Convert to unquoted literal'
After 'Convert to unquoted literal'
After 'Convert to unquoted literal'

Convert to Legacy `...` Notation

Convert a subshell command into the equivalent backquote command. Both () and $() are converted into ``.

Context
Subshell commands.
Before 'Convert to legacy `...` notation'
Before 'Convert to legacy `...` notation'
After 'Convert to legacy `...` notation'
After 'Convert to legacy `...` notation'

Convert to $(...) Notation

Convert a legacy backquote command substitution `` element into the equivalent subshell element.

Context
Legacy backquote commands
Before 'Convert to $(...) notation'
Before 'Convert to $(...) notation'
After 'Convert to $(...) notation'
After 'Convert to $(...) notation'

Escape String

Adds escaping to a string to turn variable references into literal string values. Please note, that this changes the semantics of the escaped text.

Context
Double-quoted strings.
Before 'Escape string'
Before 'Escape string'
After 'Escape string'
After 'Escape string'

Remove String Escaping

Removes escaping from a quoted string. Please note, that this intention may change the semantics of your script.

Context
Double-quoted strings or single-quoted strings like $'text', which support escapes.
Before 'Remove string escaping'
Before 'Remove string escaping'
After 'Remove string escaping'
After 'Remove string escaping'

Convert to Variable Reference $Name

Converts a simple parameter expansion ${name} into the equivalent variable reference $name.

Context
Simple parameter expansions without operators.
Before 'Convert to variable reference $name'
Before 'Convert to variable reference $name'
After 'Convert to variable reference $name'
After 'Convert to variable reference $name'

Convert to Parameter Expansion ${Name}

Converts a simple variable reference into the equivalent parameter expansion.

Before 'Convert to parameter expansion ${name}'
Before 'Convert to parameter expansion ${name}'
After 'Convert to parameter expansion ${name}'
After 'Convert to parameter expansion ${name}'

Add Function Keyword

Adds a function keyword to functions declared in Bash files.

Context
Names of function definitions without the function keyword.
Before 'Add function keyword'
Before 'Add function keyword'
After 'Add function keyword'
After 'Add function keyword'

Remove Function Keyword

Removes the function keyword of function declarations.

Context
The function keyword of function definitions.
Before 'Remove function keyword'
Before 'Remove function keyword'
After 'Remove function keyword'
After 'Remove function keyword'

Remove Quotes (May Change Semantics)

Remove the quote of single-quoted or double-quoted strings. Only the quotes are removed, no escaping or other transformations are applied. Please note, that this intention may change the semantics of your script.

Context
Single-quoted and double-quoted strings.
Before 'Remove quotes (may change semantics)'
Before 'Remove quotes (may change semantics)'
After 'Remove quotes (may change semantics)'
After 'Remove quotes (may change semantics)'

Switch Bats-Core Test Marker Style

Switch between @test and #@test marker styles of bats-core.

Context
Names of bats-core test functions or the test markers @test and #@test.
Before 'Switch bats-core test marker style'
Before 'Switch bats-core test marker style'
After 'Switch bats-core test marker style'
After 'Switch bats-core test marker style'
© 2020–2022 Joachim Ansorg
Правовая информация
Политика конфиденциальности
Юридическая информация