home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2361 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: surise.lyseo.otol.fi!not-for-mail
  2. From: aalto@lyseo.otol.fi (Lauri Aalto)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: _PCHAR/_MCHAR/OLDREDIRECT
  5. Date: 30 Jan 1996 16:35:15 GMT
  6. Organization: large
  7. Message-ID: <4elhc3$33r@hobbes.lyseo.otol.fi>
  8. References: <68771273@0humpty.tomate.tng.oche.de>
  9. NNTP-Posting-Host: surise.lyseo.otol.fi
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Andreas Mixich (humpty@TOMATE.TNG.OCHE.DE) wrote:
  13. > While I remember _pchar worked when used as pipe, _mchar, which is supposed to
  14. > allow multiple commands on the console or in a script in one line, does not
  15. > work. It seems, this won't work in scripts, because the variables are local to
  16. > the curent shell. But also when using _mchar in a shell it does not work.
  17.  
  18. _mchar is used for concatenating outputs of multiple commands, for instance:
  19.  
  20. 1> set _mchar "||"
  21. 1> echo noline foo || echo bar
  22. foobar
  23.  
  24. (No, this X11 terminal really doesn't have an Amiga shell, thus I had to 
  25. pick the example from the top of my head instead of a clipboard.)
  26.  
  27. --
  28. Lauri Aalto <aalto@iki.fi> --- http://www.iki.fi/aalto/
  29.