dundalek / closh

Bash-like shell based on Clojure
Eclipse Public License 1.0
1.61k stars 65 forks source link

Aliases are only expanded for the first command but not for command inside pipeline #108

Open dundalek opened 5 years ago

dundalek commented 5 years ago
$ (defalias pbcopy "xclip -selection c")
$ echo a | pbcopy
pbcopy: command not found

defcmd also does not work, following hangs:

(defcmd pbcopy [] (sh xclip -selection c))
$ echo a | pbcopy

Using xclip directly works as expected:

$ echo a | xclip -selection c