everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
* [PATCH] dtas-cueedit: escape path to temporary file
@ 2015-10-03  9:38 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-10-03  9:38 UTC (permalink / raw)
  To: dtas-all; +Cc: Eric Wong

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)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-03  9:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-03  9:38 [PATCH] dtas-cueedit: escape path to temporary file Eric Wong

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).