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.

Контекст
Single-quoted strings and unquoted text.
Перед 'Convert to quoted string'
Перед 'Convert to quoted string'
После 'Convert to quoted string'
После 'Convert to quoted string'

Convert to Raw String

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

Контекст
Double-quoted strings, which only contain static values. String with variable references, subshells or other dynamic content are excluded from this intention.
Перед 'Convert to raw string'
Перед 'Convert to raw string'
После 'Convert to raw string'
После '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.

Контекст
Single quoted and double-quoted strings.
Перед 'Convert to unquoted literal'
Перед 'Convert to unquoted literal'
После 'Convert to unquoted literal'
После 'Convert to unquoted literal'

Convert to Legacy `...` Notation

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

Контекст
Subshell commands.
Перед 'Convert to legacy `...` notation'
Перед 'Convert to legacy `...` notation'
После 'Convert to legacy `...` notation'
После 'Convert to legacy `...` notation'

Convert to $(...) Notation

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

Контекст
Legacy backquote commands
Перед 'Convert to $(...) notation'
Перед 'Convert to $(...) notation'
После 'Convert to $(...) notation'
После '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.

Контекст
Double-quoted strings.
Перед 'Escape string'
Перед 'Escape string'
После 'Escape string'
После 'Escape string'

Remove String Escaping

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

Контекст
Double-quoted strings or single-quoted strings like $'text', which support escapes.
Перед 'Remove string escaping'
Перед 'Remove string escaping'
После 'Remove string escaping'
После 'Remove string escaping'

Convert to Variable Reference $Name

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

Контекст
Simple parameter expansions without operators.
Перед 'Convert to variable reference $name'
Перед 'Convert to variable reference $name'
После 'Convert to variable reference $name'
После 'Convert to variable reference $name'

Convert to Parameter Expansion ${Name}

Converts a simple variable reference into the equivalent parameter expansion.

Перед 'Convert to parameter expansion ${name}'
Перед 'Convert to parameter expansion ${name}'
После 'Convert to parameter expansion ${name}'
После 'Convert to parameter expansion ${name}'

Add Function Keyword

Adds a function keyword to functions declared in Bash files.

Контекст
Names of function definitions without the function keyword.
Перед 'Add function keyword'
Перед 'Add function keyword'
После 'Add function keyword'
После 'Add function keyword'

Remove Function Keyword

Removes the function keyword of function declarations.

Контекст
The function keyword of function definitions.
Перед 'Remove function keyword'
Перед 'Remove function keyword'
После 'Remove function keyword'
После '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.

Контекст
Single-quoted and double-quoted strings.
Перед 'Remove quotes (may change semantics)'
Перед 'Remove quotes (may change semantics)'
После 'Remove quotes (may change semantics)'
После 'Remove quotes (may change semantics)'

Switch Bats-Core Test Marker Style

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

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