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.

Kontext
Single-quoted strings and unquoted text.
Vor 'Convert to quoted string'
Vor 'Convert to quoted string'
Nach 'Convert to quoted string'
Nach 'Convert to quoted string'

Convert to Raw String

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

Kontext
Double-quoted strings, which only contain static values. String with variable references, subshells or other dynamic content are excluded from this intention.
Vor 'Convert to raw string'
Vor 'Convert to raw string'
Nach 'Convert to raw string'
Nach '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.

Kontext
Single quoted and double-quoted strings.
Vor 'Convert to unquoted literal'
Vor 'Convert to unquoted literal'
Nach 'Convert to unquoted literal'
Nach 'Convert to unquoted literal'

Convert to Legacy `...` Notation

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

Kontext
Subshell commands.
Vor 'Convert to legacy `...` notation'
Vor 'Convert to legacy `...` notation'
Nach 'Convert to legacy `...` notation'
Nach 'Convert to legacy `...` notation'

Convert to $(...) Notation

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

Kontext
Legacy backquote commands
Vor 'Convert to $(...) notation'
Vor 'Convert to $(...) notation'
Nach 'Convert to $(...) notation'
Nach '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.

Kontext
Double-quoted strings.
Vor 'Escape string'
Vor 'Escape string'
Nach 'Escape string'
Nach 'Escape string'

Remove String Escaping

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

Kontext
Double-quoted strings or single-quoted strings like $'text', which support escapes.
Vor 'Remove string escaping'
Vor 'Remove string escaping'
Nach 'Remove string escaping'
Nach 'Remove string escaping'

Convert to Variable Reference $Name

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

Kontext
Simple parameter expansions without operators.
Vor 'Convert to variable reference $name'
Vor 'Convert to variable reference $name'
Nach 'Convert to variable reference $name'
Nach 'Convert to variable reference $name'

Convert to Parameter Expansion ${Name}

Converts a simple variable reference into the equivalent parameter expansion.

Vor 'Convert to parameter expansion ${name}'
Vor 'Convert to parameter expansion ${name}'
Nach 'Convert to parameter expansion ${name}'
Nach 'Convert to parameter expansion ${name}'

Add Function Keyword

Adds a function keyword to functions declared in Bash files.

Kontext
Names of function definitions without the function keyword.
Vor 'Add function keyword'
Vor 'Add function keyword'
Nach 'Add function keyword'
Nach 'Add function keyword'

Remove Function Keyword

Removes the function keyword of function declarations.

Kontext
The function keyword of function definitions.
Vor 'Remove function keyword'
Vor 'Remove function keyword'
Nach 'Remove function keyword'
Nach '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.

Kontext
Single-quoted and double-quoted strings.
Vor 'Remove quotes (may change semantics)'
Vor 'Remove quotes (may change semantics)'
Nach 'Remove quotes (may change semantics)'
Nach 'Remove quotes (may change semantics)'

Switch Bats-Core Test Marker Style

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

Kontext
Names of bats-core test functions or the test markers @test and #@test.
Vor 'Switch bats-core test marker style'
Vor 'Switch bats-core test marker style'
Nach 'Switch bats-core test marker style'
Nach 'Switch bats-core test marker style'
© 2020–2024 Joachim Ansorg
Impressum
Datenschutz
Rechtliches