ljadslkjdsalkj
This commit is contained in:
@@ -93,7 +93,8 @@
|
||||
},
|
||||
"read-array": {
|
||||
"prefix": "read-array",
|
||||
"body": "declare -a ${2:test}=()\nreadarray -td \\$'${3:\\n}' ${2:test} < <( ${4:CMD} )$0",
|
||||
// "body": "declare -a ${2:test}=()\nreadarray -td \\$'${3:\\n}' ${2:test} < <( ${4:CMD} )$0",
|
||||
"body": "declare -a ${2:test}=()\nreadarray -td \\$'${3:\\n}' ${2:test} <<<\"\\$( ${4:CMD} )\"$0",
|
||||
"description": "Bash snippet 'read-array'"
|
||||
},
|
||||
"escape-array": {
|
||||
@@ -114,7 +115,7 @@
|
||||
},
|
||||
"subshell-multiline": {
|
||||
"prefix": "subshell-multiline",
|
||||
"body": "${1:tmpcmd}() {\n\t${2:BODY}\n}\n\"\\$(declare -f ${1:tmpcmd}); ${1:tmpcmd} \\\"\\\\\\$@\\\"\"\nunset -f ${1:tmpcmd}$0",
|
||||
"body": "! declare -F ${1:tmpcmd} >&/dev/null || ! echo >&2 \"ERROR: ${1:tmpcmd}() already declared!\"\n${1:tmpcmd}() {\n\t${2:BODY}\n}\n\"\\$(declare -f ${1:tmpcmd}); ${1:tmpcmd} \\\"\\\\\\$@\\\"\"\nunset -f ${1:tmpcmd}$0",
|
||||
"description": "Bash snippet 'subshell-multiline'"
|
||||
},
|
||||
"math": {
|
||||
|
||||
Reference in New Issue
Block a user