Skip to content

> and | doesn't work with alias. #280

Answered by leo-arch
LinArcX asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @LinArcX.

expect the same thing for alias internal command of clifm, but it doesn't work. why?

This precisely because alias is an internal command. Clifm by itself does not support pipes or stream redirection, so that it is taking | as a parameter for the alias command, and since there's no such alias, it throws the appropriate error.

For actions | wc -l, it doesn't throw an error. it shows the help page of action

In this case there's not error message, since actions does not take any parameter (they're just ignored).

didn't test other sub-commands and I don't know if this is a general behaviour or not.

This is the case for all internal commands. Since we do not support pipes or …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LinArcX
Comment options

Answer selected by LinArcX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants