DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th June 2013
thirdm thirdm is offline
Package Pilot
 
Join Date: May 2009
Posts: 205
Thanked 3 Times in 3 Posts
Default Bourne pipe operator parse ambiguity?

I'm puzzled by this statement: "It is remarkable that in the four most recent editions of the UNIX system programmer’s manual the Bourne shell grammar described in the manual page does not admit the command who|wc. This is surely an oversight, but it suggests something darker: nobody really knows what the Bourne shell’s grammar is." -- http://doc.cat-v.org/plan_9/4th_edition/papers/rc

Reading the sh manual on NetBSD, the only other use of the pipe symbol I could find was in case statements to give multiple patterns in each alternative. I don't get what problem that could create. Does anyone know what Tom Duff is getting at?
Reply With Quote
  #2   (View Single Post)  
Old 28th June 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,710
Thanked 214 Times in 189 Posts
Default

You might ask him -- his Email address is at the top of that page.

Looking at OpenBSD's sh(1) man page and the ksh(1) man page, which are slightly different ... I see a mention of who(1) as being one of the set of tracked aliases. wc(1) is not mentioned.
Reply With Quote
  #3   (View Single Post)  
Old 29th June 2013
unkmail unkmail is offline
New User
 
Join Date: May 2013
Posts: 6
Thanked 0 Times in 0 Posts
Default

I think he was talking about the very old systems. For ex. man sh from UNIX V3 http://minnie.tuhs.org/cgi-bin/utree.pl?file=V3 does not allow "|" as piplining command.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/rc.d/cron : need root privileges ... unexpected operator/operand daemonfowl OpenBSD Security 2 21st July 2012 03:33 PM
Write failed: Broken pipe .. while updating ports tree daemonfowl OpenBSD Packages and Ports 5 28th June 2012 12:58 AM
How do I pipe a man page into emacs for searches? OS_Stuntman FreeBSD General 9 20th November 2011 06:37 PM
Pipe grep to copy files based on name. Daffy Programming 5 28th May 2011 11:03 PM
An in-depth interview with Steve Bourne, creator of the Bourne shell, or sh J65nko Off-Topic 3 8th March 2009 01:47 AM


All times are GMT. The time now is 11:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick