Skip to content

handle $EDITOR that has whitespace #36

Description

@josharian
 $ tk edit exe-vzy5
  /opt/homebrew/bin/tk: line 1315: code -w: command not found

fix is obvious and trivial:

diff --git i/ticket w/ticket
index 342678e..de8391c 100755
--- i/ticket
+++ w/ticket
@@ -1312,7 +1312,7 @@ cmd_edit() {
     file=$(ticket_path "$1") || return 1

     if [ -t 0 ] && [ -t 1 ]; then
-        "${EDITOR:-vi}" "$file"
+        ${EDITOR:-vi} "$file"
     else
         echo "Edit ticket file: $file"
     fi

have it patched in locally, courtesy filing an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions