parentheses as special characters

parentheses as special characters

Post by Johns » Thu, 29 Jun 1995 04:00:00



In his book "The UNIX System V Environment (1987)", Stephen R. Bourne
says (p. 60):

        For historical reasons the parentheses are special characters
        like | and ; and will be recognized anywhere unless quoted.

Can anyone explain what the "historical reasons" are ?

--

------------------------------------------------------------------------------
FernUniversitaet                        Phone: +49-2331-987-2874,-2799
58084 Hagen, Germany                    Fax:   +49-2331-987-2720

 
 
 

parentheses as special characters

Post by Sally Woolric » Thu, 29 Jun 1995 04:00:00




Quote:> Can anyone explain what the "historical reasons" are ?

Uh.  Reasons lost in the mists of time?  Reasons which would be too silly
& embarassing to reveal now? ;-)

--
============================================================================
Sally Woolrich                    |          This mail contains my personal

============================================================================

 
 
 

parentheses as special characters

Post by Ray A. Jon » Sat, 01 Jul 1995 04:00:00


: In his book "The UNIX System V Environment (1987)", Stephen R. Bourne
: says (p. 60):

:       For historical reasons the parentheses are special characters
:       like | and ; and will be recognized anywhere unless quoted.
:      
: Can anyone explain what the "historical reasons" are ?

The parans can be used to group commands for the shell.
(date ; echo "Log entry" ) > log.file

The file will contain:
        Fri Jun 30 13:38:22 PDT 1995
        Log entry
Ray A. Jones
--

URL: http://www.celestial.com         One Mercer Plaza, Suite S100
Manufacturer of Internet Gateways     Mercer Island, WA 98040; (206) 236-1676
The probability of one or more spelling errors in this missive approaches
unity.  If this bothers you, run it through your spell checker!

 
 
 

parentheses as special characters

Post by Johns » Tue, 04 Jul 1995 04:00:00



:
: : In his book "The UNIX System V Environment (1987)", Stephen R. Bourne
: : says (p. 60):
:
: :     For historical reasons the parentheses are special characters
: :     like | and ; and will be recognized anywhere unless quoted.
: :    
: : Can anyone explain what the "historical reasons" are ?
:
: The parans can be used to group commands for the shell.
: (date ; echo "Log entry" ) > log.file
:
: The file will contain:
:       Fri Jun 30 13:38:22 PDT 1995
:       Log entry
: Ray A. Jones
: --

Well, yes, but braces are also used for command grouping, but they are
only recognized following a newline or ;.

--

------------------------------------------------------------------------------
FernUniversitaet                        Phone: +49-2331-987-2874,-2799
58084 Hagen, Germany                    Fax:   +49-2331-987-2720

 
 
 

1. Problem with a non-special "special" character

Problem is in bourne shell, under SunOS 4.1.3. a call to a program

every time. If I rearrange the input parameters and remove this one
character, everything is fine. None of my shell documentation lists

an example:



just with "no data". I checked and the only character that I need to

Does any one have a clue

2. getethers on Solaris ?

3. \\\ Professional Images Virtual Domains/// Special Special Special Special

4. how install debian linux ?

5. Display of special character

6. Q: Batch renaming numbered files

7. qt hexviewer and special characters

8. Remote Printing

9. Check for special character

10. tcsh files with special characters

11. DOS versus UNIX sed question on special characters

12. How to Print Special Character in Unix ???

13. sed with special characters