Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error in online instructions




On Aug 16, 2005, at 10:34 , Scott Mansfield wrote:

I'm new to darwin build and just ran through the installation steps. In doing so I encountered something a wee confusing.

At

http://opendarwin.org/projects/darwinbuild/doc/tools/ index.html#install

the line
hdiutil create -size 4g -type UDIF -fs HFSX -volname Builds \
        -uid 0 -gid 0 -attach Builds.dmg
[snip]
It's not a bug, nor is it a feature. The backslash is a common documentation trick when a line is too long and needs a visual break; It indicates "type all this in."

It's actually more than a documentation trick. It's a common shell "escape", and means "treat the next line as part of this line when evaluating the command".


For example:

$ ls -l \
> /tmp/
total 3560
-rw-r--r--   1 justin    wheel     1511 Aug 14 17:15 files
-rwxr-xr-x   1 justin    wheel      280 Aug 14 17:23 foo
-rw-r--r--   1 justin    wheel      474 Aug 13 10:29 foo.cc
-rwxr-xr-x   1 justin    wheel   201452 Aug 16 09:46 gmp1
-rw-r--r--   1 justin    wheel      764 Aug 16 09:44 gmp1.c
-rw-r--r--   1 justin    wheel      662 Aug 16 09:44 gmp2.c
drwxrwxrwx   3 root      wheel      102 Aug 14 17:20 printers
$

Note the "> " on the line after the "\"; this is the "secondary" shell prompt, indicating that the shell is waiting for the rest of the line.

Regards,

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for General Semantics
-----------
My wife 'n kids 'n dog are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Error in online instructions (From: Will Hickie <email@hidden>)
 >Re: Error in online instructions (From: Scott Mansfield <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.