/tmp/ponythink instead of /tmp/.ponythink

This commit is contained in:
Mattias Andrée 2012-07-24 16:16:59 +02:00
parent 110c73186b
commit c374d57fd3
2 changed files with 4 additions and 4 deletions

View file

@ -173,9 +173,9 @@ say() {
ccmd=$(for c in $(echo $PATH":" | sed -e 's/:/\/'"$cmd"' /g'); do if [[ -f $c ]]; then echo $c; break; fi done)
if [[ ${0} == *ponythink ]]; then
cat <(echo -e $pcmd) $ccmd > "/tmp/.ponythink"
perl '/tmp/.ponythink' "$@"
rm '/tmp/.ponythink'
cat <(echo -e $pcmd) $ccmd > "/tmp/ponythink"
perl '/tmp/ponythink' "$@"
rm '/tmp/ponythink'
else
perl <(cat <(echo -e $pcmd) $ccmd) "$@"
fi

View file

@ -17,7 +17,7 @@ foreach $arg (@ARGV)
{
# Format names from ponyies names
$arg =~ s/([a-z])([A-Z])/\1 \2/;
$arg =~ s/_(.*)/\t(\1)/;
#$arg =~ s/_(.*)/\t(\1)/; ## Incompatible with `ponysay -L`
if ($first == 1)
{ $first = 0;