help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] How to prevent parameters being interpreted in pipe?


From: Patrick Schleizer
Subject: [Help-bash] How to prevent parameters being interpreted in pipe?
Date: Sun, 04 Dec 2016 19:55:00 +0000

Hi,

code talks. :)

works:
echo "test" | base64 -d

works:
echo "--INVALID something" | grep thing

Let's assume the input would be different.

does not work:
echo "-e test" | base64 -d

Why works base64 different?

How to prevent interpreting "-e" as parameter? I.e. how to have it
interpreter as string?

Cheers,
Patrick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]