![]() |
environment variable does not exist
Code:
$ p=password; ccrypt -eEp file.txt |
ccrypt works in some kind of subshell and it does not care to read the variable before it creates the subshell?!
|
Not sure, but you might have to use that "cat<<EOF" bash notation there. I'm pretty weak on that notation.
https://mytrashcode.com/cat-command-examples |
wrong syntax:
Code:
p=password ccrypt -eEp file.txt otherwise export makes the given environment variable[s] accessible in the child processes. That is the purpose of that export. |
Expanding on the explanation above:
Quote:
Code:
$ p=password |
All times are GMT -5. The time now is 10:38 PM. |