mirror of
https://github.com/Pardus-Ahtapot/SOLARIS.git
synced 2026-04-25 01:16:01 +03:00
[PR #1] [CLOSED] Use $(..) instead of legacy .. #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SOLARIS#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pardus-Ahtapot/SOLARIS/pull/1
Author: @mrkara
Created: 12/31/2016
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
dc71181Use $(..) instead of legacy..📊 Changes
2 files changed (+16 additions, -16 deletions)
View changed files
📝
ahtapot-portscan/var/opt/portscan/parser.sh(+9 -9)📝
ahtapot-portscan/var/opt/portscan/scanner.sh(+7 -7)📄 Description
Backtick command substitution
..is legacy syntaxwith several issues:
* It has a series of undefined behaviors
related to quoting in POSIX.
* It imposes a custom escaping mode with
surprising results.
* It's exceptionally hard to nest.
$(..) command substitution has none of these problems,
and is therefore strongly encouraged.
See also: https://github.com/koalaman/shellcheck/wiki/SC2006
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.