[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 781d677941 4/6: Use call-process-shell-command in
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 781d677941 4/6: Use call-process-shell-command instead of splitting right after concat |
Date: |
Sun, 15 Dec 2024 22:01:49 -0500 (EST) |
branch: elpa/inf-ruby
commit 781d677941855f13d980536cde0367819c80d35d
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>
Use call-process-shell-command instead of splitting right after concat
Seems more straightforward.
#190
---
inf-ruby.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 5d7aef2685..b79a18f49d 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -122,7 +122,12 @@ So when used it must include %s. Set to nil to disable."
WITH-BUNDLER, the command is wrapped with `bundle exec'."
(let* ((command (format (or inf-ruby-wrapper-command "%s")
(concat (when with-bundler "bundle exec ") "irb
-v")))
- (output (car (last (apply #'process-lines (split-string-and-unquote
command)))))
+ (output
+ (with-output-to-string
+ (let ((status (call-process-shell-command command nil
+ standard-output)))
+ (unless (eql status 0)
+ (error "%s exited with status %s" command status)))))
(fields (split-string output "[ (]")))
(if (equal (car fields) "irb")
(version<= "1.2.0" (nth 1 fields))
- [nongnu] elpa/inf-ruby updated (6399a36682 -> d4cff9a323), ELPA Syncer, 2024/12/15
- [nongnu] elpa/inf-ruby f6f9e727f5 2/6: Update README do document 'inf-ruby-wrapper-command', ELPA Syncer, 2024/12/15
- [nongnu] elpa/inf-ruby 781d677941 4/6: Use call-process-shell-command instead of splitting right after concat,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 22f816a369 5/6: README edits, ELPA Syncer, 2024/12/15
- [nongnu] elpa/inf-ruby d4cff9a323 6/6: Capitalize, ELPA Syncer, 2024/12/15
- [nongnu] elpa/inf-ruby 58568b6f7e 1/6: Add custom variable to specify a wrapper for the determined commands to launch a console, ELPA Syncer, 2024/12/15
- [nongnu] elpa/inf-ruby 7d216e5c8f 3/6: inf-ruby-wrapper-command: Set the default value to nil, ELPA Syncer, 2024/12/15