Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Other Programming > BOOK: Beginning Shell Scripting ISBN: 0-7645-8320-4
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Shell Scripting ISBN: 0-7645-8320-4
This is the forum to discuss the Wrox book Beginning Shell Scripting by Eric Foster-Johnson, John C. Welch, Micah Anderson; ISBN: 9780764583209
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Shell Scripting ISBN: 0-7645-8320-4 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 20th, 2005, 09:24 PM
Registered User
 
Join Date: Jul 2005
Location: Minneapolis, MN, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default csh foreach not listing directory contents

Page 98 of Beginning Shell Scripting.
Try it Out: Creating a C Shell foreach Loop

I saved the following code to file myls_csh on ~/Desktop

    # C shell foreach
    foreach filename (*)
    echo $filename
    end

I then ran the code using csh myls_csh in the Terminal on Mac OS X (10.4.2). Only the first item in the directory gets listed.

Is this expected behavior with this OS?

bill
Reply With Quote
  #2 (permalink)  
Old July 31st, 2005, 09:28 AM
Registered User
 
Join Date: Jul 2005
Location: , Minnesota, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is not the expected behavior. Again, I think that there somehow is a difference between your csh and mine, but I'm not sure what.

-Eric


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing Active Directory Users wallacr C# 2005 0 December 4th, 2006 09:41 AM
Listing of Directory Content ram_dwivedi Javascript 3 December 9th, 2005 04:13 AM
FSO directory listing spinout Classic ASP Components 4 November 7th, 2004 02:18 AM
Directory Listing Bleetz Pro JSP 1 September 20th, 2003 06:25 PM



All times are GMT -4. The time now is 05:03 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.