Skip to content

format-problem-post.sh script#16

Open
eraserhd wants to merge 2 commits into
mawww:masterfrom
eraserhd:format-problem-post
Open

format-problem-post.sh script#16
eraserhd wants to merge 2 commits into
mawww:masterfrom
eraserhd:format-problem-post

Conversation

@eraserhd

Copy link
Copy Markdown
Contributor

No description provided.

@lenormf

lenormf commented Sep 19, 2018

Copy link
Copy Markdown

Are you sure you can't replace all that with an awk script? It seems highly inefficient.

@eraserhd

Copy link
Copy Markdown
Contributor Author

@lenormf Maybe? But it was a learning experience and I think, "When in Rome..."

Also, I'm pretty sure that it could be a more simple kak script. I'll update it as I use it.

One thing I learned is that I want to break up a large Kakoune script with whitespace (the way you can with sed using multiple -e options, or the way you can with whitespace. I'll make a ticket in the Kakoune repo for that.

@lenormf

lenormf commented Sep 21, 2018

Copy link
Copy Markdown

I think you're describing the behavior discussed in this issue, minus the newlines that would be split (as if they were delimiting independent exec calls). Might happen shortly.

@eraserhd

Copy link
Copy Markdown
Contributor Author

@lenormf I don't think that applies here, since that is for quoting inside the application and this is for Kakoune's command-line parameters.

(It's probably possible to use -e instead of -f for this, in which case I could use those quoting rules, except that -f does a bunch of other nice things like read from stdin and not require a tty.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants