mirror of
https://github.com/jorgebucaran/fisher
synced 2024-06-28 23:01:50 +02:00
refactor: improve fishfile read field sep regex
This commit is contained in:
parent
9293e8b3b7
commit
23462edfd0
|
@ -242,7 +242,7 @@ end
|
||||||
|
|
||||||
function _fisher_read -a cmd
|
function _fisher_read -a cmd
|
||||||
set -e argv[1]
|
set -e argv[1]
|
||||||
command awk -v FS=\# -v CMD="$cmd" -v ARGS="$argv" '
|
command awk -v FS="[[:space:]]*#" -v CMD="$cmd" -v ARGS="$argv" '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
split(ARGS, args, " ")
|
split(ARGS, args, " ")
|
||||||
for (i in args) {
|
for (i in args) {
|
||||||
|
|
Loading…
Reference in a new issue