This commit is contained in:
Mattias Andrée 2012-11-04 04:38:27 +01:00
parent 1dac58de1c
commit c7aae2ae8a

View file

@ -638,7 +638,7 @@ especially for shell scripts.
The command @command{__pony=$(ponysay -o 3>&1 1>/dev/null | grep ^pony\ file: | The command @command{__pony=$(ponysay -o 3>&1 1>/dev/null | grep ^pony\ file: |
sed -e s/^pony\ file:\ //g) && (ponysay -of "$__pony" | ponythink -Wn -f "$__pony")} sed -e s/^pony\ file:\ //g) && (ponysay -of "$__pony" | ponythink -Wn -f "$__pony")}
will give you a pony thinking of herself. The command works on GNU Bash, but my will give you a pony thinking of herself. The command works on GNU Bash, but may
not work on less POSIX compatible shells. It works by first getting a random pony and not work on less POSIX compatible shells. It works by first getting a random pony and
use the extra information printed the file descriptor 3 (see @ref{Extra information}), use the extra information printed the file descriptor 3 (see @ref{Extra information}),
and fetchs the file name with help of @command{grep} and @command{sed}. The file and fetchs the file name with help of @command{grep} and @command{sed}. The file