[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] dtas-cueedit: escape path to temporary file
From: |
Eric Wong |
Subject: |
[PATCH] dtas-cueedit: escape path to temporary file |
Date: |
Sat, 3 Oct 2015 09:38:36 +0000 |
Temporary files may still have spaces or weird chars in them.
Just keep in mind we need to use $EDITOR/$VISUAL as-is since that
may contain additional command-line arguments, so we cannot pass
an array.
---
bin/dtas-cueedit | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/dtas-cueedit b/bin/dtas-cueedit
index 603bf28..5e6970f 100755
--- a/bin/dtas-cueedit
+++ b/bin/dtas-cueedit
@@ -44,7 +44,7 @@ ARGV.each do |file|
backup.write(original) if backup
# user edits the file
- x!("#{editor} #{tmp.path}")
+ x!("#{editor} #{xs(tmp.path)}")
# avoid an expensive update if the user didn't change anything
current = File.binread(tmp.path)
--
EW
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] dtas-cueedit: escape path to temporary file,
Eric Wong <=