handle paths with embedded spaces

This commit is contained in:
dockes
2006-04-04 16:03:28 +00:00
parent 699fb34bb0
commit 14194e30d8
4 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
#!/bin/sh
# @(#$Id: rcldjvu,v 1.1 2006-02-03 10:53:34 dockes Exp $ (C) 2005 J.F.Dockes
# @(#$Id: rcldjvu,v 1.2 2006-04-04 16:03:28 dockes Exp $ (C) 2005 J.F.Dockes
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -78,7 +78,7 @@ fi
# in C/awk \-escaped notation. Awk can only process this in string
# constants, so we have a first awk pass to create an awk program to parse
# the string as a constant (...). This is not exactly robust or nice
title=`djvused $infile -e 'select 1;output-ant' | \
title=`djvused "$infile" -e 'select 1;output-ant' | \
grep ' (title ' | sed -e 's/^.* (title //' -e 's/)$//' |\
awk '
{
@@ -96,7 +96,7 @@ cat <<EOF
<pre>
EOF
djvutxt $infile | sed -e 's/[ ][ ]*$//' | \
djvutxt "$infile" | sed -e 's/[ ][ ]*$//' | \
awk '
BEGIN {
cont = ""