This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jena.git


The following commit(s) were added to refs/heads/master by this push:
     new fb1a608  Fix unquoted path
     new 9211cb9  Merge pull request #895 from NiclasvanEyk/patch-1
fb1a608 is described below

commit fb1a60866f2a32e905a3b3ae45d361fca86c788f
Author: Niclas van Eyk <[email protected]>
AuthorDate: Sat Jan 2 19:28:34 2021 +0100

    Fix unquoted path
    
    The $WORK path is not surrounded by quotes. This leads to problems, if the 
path contains spaces.
    
    Example:
    
    ```bash
    tdbloader2 --loc="$HOME/a path that contains spaces/my-target-dir" 
"$HOME/Downloads/example.nt"
    ```
    
    This leads to the following error:
    
    ```
    /Users/niclasvaneyk/Code/apache-jena-3.17.0/bin/tdbloader2index: line 363: 
$WORK: ambiguous redirect
     19:27:26 ERROR Failed during data phase
    ```
    
    After applying the proposed changes everything works as expected.
---
 apache-jena/bin/tdbloader2index | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apache-jena/bin/tdbloader2index b/apache-jena/bin/tdbloader2index
index dadea54..4807698 100755
--- a/apache-jena/bin/tdbloader2index
+++ b/apache-jena/bin/tdbloader2index
@@ -360,7 +360,7 @@ generate_index()
     # Sort the input data
     info "Sort $IDX"
     debug "Sorting $DATA into work file $WORK"
-    sort $SORT_ARGS -u $KEYS < "$DATA" > $WORK
+    sort $SORT_ARGS -u $KEYS < "$DATA" > "$WORK"
     info "Sort $IDX Completed"
 
     # Build into an index

Reply via email to