]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Double quote `$XDG...` in shell exports
authorTiv0w <t.theomeyer@gmail.com>
Fri, 20 May 2022 11:13:19 +0000 (13:13 +0200)
committerTiv0w <t.theomeyer@gmail.com>
Fri, 20 May 2022 11:35:45 +0000 (13:35 +0200)
Prevent globbing and word splitting.
https://github.com/koalaman/shellcheck/wiki/SC2086

20 files changed:
programs/android-studio.json
programs/asdf-vm.json
programs/bash.json
programs/ccache.json
programs/cd-bookmark.json
programs/cgdb.json
programs/gem.json
programs/kodi.json
programs/less.json
programs/npm.json
programs/pex.json
programs/pyenv.json
programs/pylint.json
programs/python-azure-cliAU.json
programs/ruby-travis.json
programs/sqlite.json
programs/texmacs.json
programs/texmf.json
programs/weechat.json
programs/xcompose.json

index 0bccf02e9f54bde82f028244001ba7c041151247..c116b3670aa0dfa23d2430ceb90af5ef63c31c9a 100644 (file)
@@ -3,7 +3,7 @@
         {
             "path": "$HOME/.android",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport ANDROID_HOME=$XDG_DATA_HOME/android\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport ANDROID_HOME=\"$XDG_DATA_HOME\"/android\n```\n"
         }
     ],
     "name": "android-studio"
index 39d2b1f50c68e906e5f5917febcde28a65d1ccbc..dd0c991239616bc7304800d7b6a08473eb16aca5 100644 (file)
@@ -3,7 +3,7 @@
         {
             "path": "$HOME/.asdf",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport ASDF_DATA_DIR=${XDG_DATA_HOME}/asdf\"\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport ASDF_DATA_DIR=\"${XDG_DATA_HOME}\"/asdf\"\n```\n"
         },
         {
             "path": "$HOME/.asdfrc",
index 3a7d2a458ca010b1009c11787ef4c90b95e89c21..7bcad1e018ee1736c4b6e8643eec9c7ee68987ff 100644 (file)
@@ -4,7 +4,7 @@
         {
             "path": "${HOME}/.bash_history",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport HISTFILE=${XDG_STATE_HOME}/bash/history\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport HISTFILE=\"${XDG_STATE_HOME}\"/bash/history\n```\n"
         }
     ]
 }
index 849449b066c41f83100a0439325d74e2aa96e323..a757b15218664ec16153f0644959a629c9a4d385 100644 (file)
@@ -4,7 +4,7 @@
         {
             "path": "${HOME}/.ccache",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport CCACHE_DIR=${XDG_CACHE_HOME}/ccache\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport CCACHE_DIR=\"${XDG_CACHE_HOME}\"/ccache\n```\n"
         }
     ]
 }
index bc8fd0a75c87f12497dcbfdfe090932077bb7c05..9332734b828e21eeb8b9cab02d0fefb60c57f702 100644 (file)
@@ -3,7 +3,7 @@
         {
             "path": "$HOME/.cdbookmark",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport CD_BOOKMARK_FILE=$XDG_CONFIG_HOME/cd-bookmark/bookmarks\n```\n\n_There's also a [fork](https://github.com/erikw/cd-bookmark/) with XDG support built-in._\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport CD_BOOKMARK_FILE=\"$XDG_CONFIG_HOME\"/cd-bookmark/bookmarks\n```\n\n_There's also a [fork](https://github.com/erikw/cd-bookmark/) with XDG support built-in._\n"
         }
     ],
     "name": "cd-bookmark"
index 953443aab1ec5df82c712e1efc33a85cf48c25bf..3bff00df765c6db329df6e5d5d04abe761f8b666 100644 (file)
@@ -3,7 +3,7 @@
         {
             "path": "$HOME/.cgdb",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport CGDB_DIR=$XDG_CONFIG_HOME/cgdb\n```\n\nMove the configuration file to _XDG_CONFIG_HOME/cgdb/cgdbrc_\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport CGDB_DIR=\"$XDG_CONFIG_HOME\"/cgdb\n```\n\nMove the configuration file to _XDG_CONFIG_HOME/cgdb/cgdbrc_\n"
         }
     ],
     "name": "cgdb"
index 1d83483cc875ee01a404443315c3a680e8880833..63ef6733fa55ffb614ac82b9d05900f793959ee8 100644 (file)
@@ -9,12 +9,12 @@
         {
             "path": "${HOME}/.gem",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport GEM_HOME=${XDG_DATA_HOME}/gem\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport GEM_HOME=\"${XDG_DATA_HOME}\"/gem\n```\n"
         },
         {
             "path": "${HOME}/.gem/specs",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport GEM_SPEC_CACHE=${XDG_CACHE_HOME}/gem\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport GEM_SPEC_CACHE=\"${XDG_CACHE_HOME}\"/gem\n```\n"
         }
     ]
 }
index e30c468dc26aab18bb0fe271cde10b52c1020e49..136509cfd300535a7a6be809c94f67af59d9424c 100644 (file)
@@ -3,7 +3,7 @@
         {
             "path": "$HOME/.kodi",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nKODI_DATA=$XDG_DATA_HOME/kodi\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport KODI_DATA=\"$XDG_DATA_HOME\"/kodi\n```\n"
         }
     ],
     "name": "kodi"
index 4c073d4edfa24425d2c03cf2c09dd71d3bb84fd7..51d474c13ace0e614fc2374e5be7530fd514070f 100644 (file)
@@ -4,7 +4,7 @@
         {
             "path": "${HOME}/.lesshst",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport LESSHISTFILE=${XDG_CACHE_HOME}/less/history\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport LESSHISTFILE=\"${XDG_CACHE_HOME}\"/less/history\n```\n"
         }
     ]
 }
index 09c554e9c9e20c660a15c59355dae33fd5417582..b72361df58f68219b9bc7b30cd6225f2338bffd9 100644 (file)
@@ -8,7 +8,7 @@
         {
             "path": "$HOME/.npmrc",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc \n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport NPM_CONFIG_USERCONFIG=\"$XDG_CONFIG_HOME\"/npm/npmrc \n```\n"
         }
     ],
     "name": "npm"
index 7794b4c7bb92076188f8a5ceff01658c44b670d8..2878b020b142a73a71f8fbc1e352e7049beeba9d 100644 (file)
@@ -4,7 +4,7 @@
         {
             "path": "${HOME}/.pex",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport PEX_ROOT=${XDG_CACHE_HOME}/pex\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport PEX_ROOT=\"${XDG_CACHE_HOME}\"/pex\n```\n"
         }
     ]
 }
index a360505fd918895f8f5b08a373a41c01e14a37bd..2fd5e59205444eb7fd30dca585dd226c797c2fff 100644 (file)
@@ -3,7 +3,7 @@
         {
             "path": "$HOME/.pyenv",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport PYENV_ROOT=$XDG_DATA_HOME/pyenv \n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport PYENV_ROOT=\"$XDG_DATA_HOME\"/pyenv \n```\n"
         }
     ],
     "name": "pyenv"
index 3e157fdffc4f2d47f43903a163f761d7bb2dbbae..ee717732a4d4defdea85fec99f9cc0871cdfd42f 100644 (file)
@@ -4,7 +4,7 @@
         {
             "path": "${HOME}/.pylint.d",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport PYLINTHOME=${XDG_CACHE_HOME}/pylint\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport PYLINTHOME=\"${XDG_CACHE_HOME}\"/pylint\n```\n"
         }
     ]
 }
index a5bd76f822ad0544d270d3ba2c72db330f456b97..38ef695a3df9d2aeb77c54439836f41175e69210 100644 (file)
@@ -3,7 +3,7 @@
         {
             "path": "$HOME/.azure",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport AZURE_CONFIG_DIR=$XDG_DATA_HOME/azure \n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport AZURE_CONFIG_DIR=\"$XDG_DATA_HOME\"/azure \n```\n"
         }
     ],
     "name": "python-azure-cliAU"
index 3d0af609e4ed3e011a0d8ab72ac2f7b01bddbc3d..130976c9afb9895713fe8970a2be0dfd2b8dd609 100644 (file)
@@ -3,7 +3,7 @@
         {
             "path": "$HOME/.travis",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport TRAVIS_CONFIG_PATH=$XDG_CONFIG_HOME/travis\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport TRAVIS_CONFIG_PATH=\"$XDG_CONFIG_HOME\"/travis\n```\n"
         }
     ],
     "name": "ruby-travis"
index 2538d6d9b1d6b3cd872b9ac18f7644320b13ed9c..04e0802a78624cba96ff0566f747bd5868a702c2 100644 (file)
@@ -3,7 +3,7 @@
         {
             "path": "$HOME/.sqlite_history",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport SQLITE_HISTORY=$XDG_CACHE_HOME/sqlite_history\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport SQLITE_HISTORY=\"$XDG_CACHE_HOME\"/sqlite_history\n```\n"
         }
     ],
     "name": "sqlite"
index 88dea76098483a576633300927b5204bffb5365a..701decc385301c97ed091a1cdcedc9143ce0d3bf 100644 (file)
@@ -3,7 +3,7 @@
         {
             "path": "$HOME/.TeXmacs",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport TEXMACS_HOME_PATH=$XDG_STATE_HOME/texmacs\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport TEXMACS_HOME_PATH=\"$XDG_STATE_HOME\"/texmacs\n```\n"
         }
     ],
     "name": "texmacs"
index b0c18cdb5d237df1c2f84f1d8f6d608be63a39ba..79a06c1d3e83b4dff47a1a15e6bfae3e3eb150cc 100644 (file)
@@ -3,17 +3,17 @@
         {
             "path": "$HOME/.texlive/texmf-config",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport TEXMFCONFIG=$XDG_CONFIG_HOME/texlive/texmf-config\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport TEXMFCONFIG=\"$XDG_CONFIG_HOME\"/texlive/texmf-config\n```\n"
         },
         {
             "path": "$HOME/.texlive/texmf-var",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport TEXMFVAR=$XDG_CACHE_HOME/texlive/texmf-var\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport TEXMFVAR=\"$XDG_CACHE_HOME\"/texlive/texmf-var\n```\n"
         },
         {
             "path": "$HOME/.texmf",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport TEXMFHOME=$XDG_DATA_HOME/texmf\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport TEXMFHOME=\"$XDG_DATA_HOME\"/texmf\n```\n"
         }
     ],
     "name": "texmf"
index 3b4eb806a884f4199884cc3cb5fef9638c459223..fe2f2f698bcfe933c429484bddbf11bdd371ed9e 100644 (file)
@@ -4,7 +4,7 @@
         {
             "path": "${HOME}/.weechat",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport WEECHAT_HOME=${XDG_CONFIG_HOME}/weechat\n```\nAlias weechat to use custom locations:\n\n```bash\nalias weechat=weechat -d ${XDG_CONFIG_HOME}/weechat```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport WEECHAT_HOME=\"${XDG_CONFIG_HOME}\"/weechat\n```\nAlias weechat to use custom locations:\n\n```bash\nalias weechat=weechat -d ${XDG_CONFIG_HOME}/weechat```\n"
         }
     ]
 }
index 659a33aa32523dbd3f7f32c8501d0c9e8553de1d..29786d1919d7ea4ad485cd7a60c39741057dac50 100644 (file)
@@ -4,12 +4,12 @@
         {
             "path": "${HOME}/.XCompose",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport XCOMPOSEFILE=${XDG_CONFIG_HOME}/X11/xcompose\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport XCOMPOSEFILE=\"${XDG_CONFIG_HOME}\"/X11/xcompose\n```\n"
         },
         {
             "path": "${HOME}/.compose-cache",
             "movable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport XCOMPOSECACHE=${XDG_CACHE_HOME}/X11/xcompose\n```\n"
+            "help": "Export the following environment variables:\n\n```bash\nexport XCOMPOSECACHE=\"${XDG_CACHE_HOME}\"/X11/xcompose\n```\n"
         }
     ]
 }