Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: kas1e on October 15, 2005, 03:35:39 PM
-
Well, question about PIPEs in amiga. I am using PIPE-1.5 from aminet, and all work fine, but, here is a settings:
Set _pchar "|" ; PIPE
Set _mchar "||" ; multicommand
Well, here is || as ';' in unix. Well, i was try to put Set _mchar ";", and it is not work, becouse aos already handled ';' char ? So, for what purposes aos take it, and , can it be to alises || to ; anyway ?
-
You can't use ';', it's the comment char (rest of the line is ignored).
Personally I use _mchar of "&&".
-
It is comment in shell window too ?[ ] I mean:
amiga shell:> cd libs: ; for what purposes needs comments in the command string ?
-
echo yes ; this is a comment you can't see
-
I mean why need it comments in command string in shell ? Do you use it for any reassons ?:)
-
Comments are optional. Usually they're used in scripts to explain function of the script.
Functionally
echo comments are optional ; they really are
does exactly the same as:
echo comments are optional
-
kas1e wrote:
I mean why need it comments in command string in shell ? Do you use it for any reassons ?:)
It's the same code which interprets a command line, no matter if it is in a script or a window. So if you want to use comments in a script you also have to live with them in a window. Of course nobody enters comments in a shell window.
Bye,
Thomas