* [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)
--
EW
^ permalink raw reply [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
everything related to duct tape audio suite (dtas)
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://80x24.org/dtas-all
git clone --mirror http://ou63pmih66umazou.onion/dtas-all
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V1 dtas-all dtas-all/ https://80x24.org/dtas-all \
dtas-all@nongnu.org
public-inbox-index dtas-all
Example config snippet for mirrors.
Newsgroups are available over NNTP:
nntp://news.public-inbox.org/inbox.comp.audio.dtas
nntp://ou63pmih66umazou.onion/inbox.comp.audio.dtas
note: .onion URLs require Tor: https://www.torproject.org/
code repositories for the project(s) associated with this inbox:
../../../dtas.git
AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git