summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-18 12:18:56 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-18 12:18:56 -0700
commite3f77f63354635b0e23fd171744c1bb96e62d411 (patch)
tree0510debfa1420eb14c7c9e4467d37da25215b962 /.bashrc
parentcf12bad808e0b2da303b292f594f7c9fd0befb4b (diff)
downloaddotfiles-e3f77f63354635b0e23fd171744c1bb96e62d411.tar.gz
shell quote args & add -t for good measure
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index ae46c95c..f351f93b 100644
--- a/.bashrc
+++ b/.bashrc
@@ -81,7 +81,8 @@ alias test-package-plan="cabal --no-require-sandbox update \
# upstream
alias sbuild-prerelease="sbuild --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn'"
# this is useful for processing removal requests
-command -v dak >/dev/null || alias dak="ssh ftp-master.debian.org dak"
+command -v dak >/dev/null \
+ || alias dak="perl -MString::ShellQuote -we'system qw(ssh -t ftp-master.debian.org dak), shell_quote @ARGV'"
# alias develacc='sudo machinectl shell spw@develacc \
# $(sudo enter-develacc /bin/sh -c "getent passwd spw | cut -d: -f7")'