Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mknos
Copy link
Contributor

@mknos mknos commented Jan 10, 2024

  • Take a hint from the TODO comments
  • The big regex in edParse() doesn't help because spaces have a special meaning; the new branch bypasses it
  • "!" line is printed at end of command output (or after error message if command can't be started)
  • Ignore if the command exits with non-zero status; print error only if command doesn't start
  • edPipe() doesn't take any line addresses because the output is not saved into the buffer
  • Tested against GNU and OpenBSD versions
  • test1: shell pattern: "!for i in 1 2 3; do echo $i; done"
  • test2: zero exit status command: "!ls"
  • test3: non-zero exit status command: "!false"

* Take a hint from the TODO comments
* The big regex in edParse() doesn't help because spaces have a special meaning; the new branch bypasses it
* "!" line is printed at end of command output (or after error message if command can't be started)
* Ignore if the command exits with non-zero status; print error only if command doesn't start
* Tested against GNU and OpenBSD versions
* test1: shell pattern: "!for i in 1 2 3; do echo $i; done"
* test2: zero exit status command: "!ls"
* test3: non-zero exit status command: "!false"
@github-actions github-actions bot added Type: enhancement improve a feature that already exists Priority: low get to this whenever Program: ed The ed program labels Jan 10, 2024
@briandfoy briandfoy merged commit 5f680cd into briandfoy:master Jan 13, 2024
@briandfoy briandfoy self-assigned this Jan 13, 2024
@briandfoy briandfoy added Status: accepted The fix is accepted and removed Priority: low get to this whenever labels Jan 13, 2024
@briandfoy briandfoy added Status: released there is a new release with this fix and removed Status: accepted The fix is accepted labels Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Program: ed The ed program Status: released there is a new release with this fix Type: enhancement improve a feature that already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants