Skip to content

Commit

Permalink
Use double quotes to stop the shell from complaining
Browse files Browse the repository at this point in the history
  • Loading branch information
snomos committed Jun 15, 2023
1 parent 2cdb7ef commit cf2dcc4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set ScriptPathName to UnixPath & ScriptName
-- the following is a command to call an external script, in this case python
-- notice the export preamble which is essential to make pbpaste work with
-- utf8 content.
set shellscriptString to "export DEVPATH=$(xcode-select -p); export LANG=en_US.UTF-8; pbpaste | $DEVPATH/usr/bin/python3 '" & ScriptPathName & "' --sort=contlex -"
set shellscriptString to "export DEVPATH=$(xcode-select -p); export LANG=en_US.UTF-8; pbpaste | $DEVPATH/usr/bin/python3 \"" & ScriptPathName & "\" --sort=contlex -"

set shellresult to do shell script shellscriptString without altering line endings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set ScriptPathName to UnixPath & ScriptName
-- the following is a command to call an external script, in this case python
-- notice the export preamble which is essential to make pbpaste work with
-- utf8 content.
set shellscriptString to "export DEVPATH=$(xcode-select -p); export LANG=en_US.UTF-8; pbpaste | $DEVPATH/usr/bin/python3 '" & ScriptPathName & "' --align -"
set shellscriptString to "export DEVPATH=$(xcode-select -p); export LANG=en_US.UTF-8; pbpaste | $DEVPATH/usr/bin/python3 \"" & ScriptPathName & "\" --align -"

set shellresult to do shell script shellscriptString without altering line endings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set ScriptPathName to UnixPath & ScriptName
-- the following is a command to call an external script, in this case python
-- notice the export preamble which is essential to make pbpaste work with
-- utf8 content.
set shellscriptString to "export DEVPATH=$(xcode-select -p); export LANG=en_US.UTF-8; pbpaste | $DEVPATH/usr/bin/python3 '" & ScriptPathName & "' --sort=revstem -"
set shellscriptString to "export DEVPATH=$(xcode-select -p); export LANG=en_US.UTF-8; pbpaste | $DEVPATH/usr/bin/python3 \"" & ScriptPathName & "\" --sort=revstem -"

set shellresult to do shell script shellscriptString without altering line endings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set ScriptPathName to UnixPath & ScriptName
-- the following is a command to call an external script, in this case python
-- notice the export preamble which is essential to make pbpaste work with
-- utf8 content.
set shellscriptString to "export DEVPATH=$(xcode-select -p); export LANG=en_US.UTF-8; pbpaste | $DEVPATH/usr/bin/python3 '" & ScriptPathName & "' --sort=revlemma -"
set shellscriptString to "export DEVPATH=$(xcode-select -p); export LANG=en_US.UTF-8; pbpaste | $DEVPATH/usr/bin/python3 \"" & ScriptPathName & "\" --sort=revlemma -"

set shellresult to do shell script shellscriptString without altering line endings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set ScriptPathName to UnixPath & ScriptName
-- the following is a command to call an external script, in this case python
-- notice the export preamble which is essential to make pbpaste work with
-- utf8 content.
set shellscriptString to "export DEVPATH=$(xcode-select -p); export LANG=en_US.UTF-8; pbpaste | $DEVPATH/usr/bin/python3 '" & ScriptPathName & "' --sort=alpha -"
set shellscriptString to "export DEVPATH=$(xcode-select -p); export LANG=en_US.UTF-8; pbpaste | $DEVPATH/usr/bin/python3 \"" & ScriptPathName & "\" --sort=alpha -"

set shellresult to do shell script shellscriptString without altering line endings

Expand Down

0 comments on commit cf2dcc4

Please sign in to comment.