List Info

Thread: Is there reference manual for sh?




Is there reference manual for sh?
user name
2006-12-30 15:04:03
I need a reference manual or specification for sh.
Where can I find it?

Elisey Babenko

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Is there reference manual for sh?
user name
2006-12-30 15:16:20
azeos.net writes:

>  I need a reference manual or specification for sh.
>  Where can I find it?

	In you mean within FreeBSD, try:

	man sh

	or

	man builtin,

	As a user, the O'Reilly _UNIX in a Nutshell_ I bought many
years ago was a very wise investment.
	If you want to hack the code ... the start with the code. 
And
good luck.


				Robert Huff
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Is there reference manual for sh?
user name
2006-12-30 18:22:06
On Sat, Dec 30, 2006 at 10:16:20AM -0500, Robert Huff wrote:
> 
> azeos.net writes:
> 
> >  I need a reference manual or specification for
sh.
> >  Where can I find it?
> 
> 	In you mean within FreeBSD, try:
> 
> 	man sh
> 
> 	or
> 
> 	man builtin,
> 
> 	As a user, the O'Reilly _UNIX in a Nutshell_ I bought
many
> years ago was a very wise investment.
> 	If you want to hack the code ... the start with the
code.  And
> good luck.
> 
> 
> 				Robert Huff

I need any online complete manual on sh, not a brief as it
is man sh.
The last one doesn't describe many features both interactive
(command line 
editing, using history interactively, and many others) 
and scripting (for example, conditional expressions).

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Is there reference manual for sh?
user name
2006-12-30 20:58:35
>I need any online complete manual on sh, not a brief as
it is man sh.
>The last one doesn't describe many features both
interactive (command line 
>editing, using history interactively, and many others) 
>and scripting (for example, conditional expressions).

You're probably looking for the POSIX 1003.1 standard,
Volume 2, which
is not available for free anywhere.

R's,
John

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Is there reference manual for sh?
user name
2006-12-30 21:42:46
Pick up a copy of:
The Unix Programming Environment by Kernigan and Pike.

         -Derek


At 12:22 PM 12/30/2006, azeos.net wrote:
>On Sat, Dec 30, 2006 at 10:16:20AM -0500, Robert Huff
wrote:
> >
> > azeos.net writes:
> >
> > >  I need a reference manual or specification
for sh.
> > >  Where can I find it?
> >
> >       In you mean within FreeBSD, try:
> >
> >       man sh
> >
> >       or
> >
> >       man builtin,
> >
> >       As a user, the O'Reilly _UNIX in a Nutshell_
I bought many
> > years ago was a very wise investment.
> >       If you want to hack the code ... the start
with the code.  And
> > good luck.
> >
> >
> >                               Robert Huff
>
>I need any online complete manual on sh, not a brief as
it is man sh.
>The last one doesn't describe many features both
interactive (command line
>editing, using history interactively, and many others)
>and scripting (for example, conditional expressions).
>
>_______________________________________________
>freebsd-questionsfreebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
>To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
>
>--
>This message has been scanned for viruses and
>dangerous content by MailScanner, and is
>believed to be clean.
>MailScanner thanks transtec Computers for their support.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Is there reference manual for sh?
user name
2006-12-30 22:05:10
Derek Ragona writes:

>  Pick up a copy of:
>  The Unix Programming Environment by Kernigan and Pike.

	I have that and - Based on hiw description - that's
unlikely to
be what he wants.


				Robert Huff
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Is there reference manual for sh?
user name
2006-12-30 23:46:03
> I need any online complete manual on sh, not a brief as
it is man sh.
> The last one doesn't describe many features both
interactive (command
> line editing, using history interactively, and many
others) and
> scripting (for example, conditional expressions).

"info bash" might be a reasonably good
approximation.  Granted it will
describe capabilities that may not be present in other
variants of sh.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Is there reference manual for sh?
user name
2006-12-31 00:22:09
On Saturday 30 December 2006 12:22, azeos.net wrote:
> On Sat, Dec 30, 2006 at 10:16:20AM -0500, Robert Huff
wrote:
> > azeos.net writes:
> > >  I need a reference manual or specification
for sh.
> > >  Where can I find it?
> >
> > 	In you mean within FreeBSD, try:
> >
> > 	man sh
> >
> > 	or
> >
> > 	man builtin,
> >
> > 	As a user, the O'Reilly _UNIX in a Nutshell_ I
bought many
> > years ago was a very wise investment.
> > 	If you want to hack the code ... the start with
the code.  And
> > good luck.
> >
> >
> > 				Robert Huff
>
> I need any online complete manual on sh, not a brief as
it is man sh.
> The last one doesn't describe many features both
interactive (command line
> editing, using history interactively, and many others)
> and scripting (for example, conditional expressions).
Here's a "brute-force" manual:

#!/bin/sh
for each in `find /etc/rc.d`
do
more $each
done

If you need more than what is there then you probably need
Kernigan and 
Ritchie's The "C" Programming Language, (still)
available on amazon.com.

lane
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Is there reference manual for sh?
user name
2006-12-31 06:17:31
On Sat, Dec 30, 2006 at 06:22:09PM -0600, Lane wrote:
> On Saturday 30 December 2006 12:22, azeos.net
wrote:
> > On Sat, Dec 30, 2006 at 10:16:20AM -0500, Robert
Huff wrote:
> > > azeos.net writes:
> > > >  I need a reference manual or
specification for sh.
> > > >  Where can I find it?
> > >
> > > 	In you mean within FreeBSD, try:
> > >
> > > 	man sh
> > >
> > > 	or
> > >
> > > 	man builtin,
> > >
> > > 	As a user, the O'Reilly _UNIX in a Nutshell_
I bought many
> > > years ago was a very wise investment.
> > > 	If you want to hack the code ... the start
with the code.  And
> > > good luck.
> > >
> > >
> > > 				Robert Huff
> >
> > I need any online complete manual on sh, not a
brief as it is man sh.
> > The last one doesn't describe many features both
interactive (command line
> > editing, using history interactively, and many
others)
> > and scripting (for example, conditional
expressions).
> Here's a "brute-force" manual:
> 
> #!/bin/sh
> for each in `find /etc/rc.d`
> do
> more $each
> done
> 
> If you need more than what is there then you probably
need Kernigan and 
> Ritchie's The "C" Programming Language,
(still) available on amazon.com.
> 
> lane

How about the following:

http:/
/www3.cons.org/cracauer/bourneshell.html

http://steve-park
er.org/sh/sh.shtml

http://ww
w.unixreview.com/columns/schaefer/

or try the following and search for     bourne shell

http://www.onlamp.com/bsd/


these are all starting points...hope this helps.
-- 
Alexander
FreeBSD 6.0-RELEASE i386
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Is there reference manual for sh?
user name
2006-12-31 07:52:20
On Sat, Dec 30, 2006 at 06:22:09PM -0600, Lane wrote:
> On Saturday 30 December 2006 12:22, azeos.net
wrote:
> > On Sat, Dec 30, 2006 at 10:16:20AM -0500, Robert
Huff wrote:
> > > azeos.net writes:
> > I need any online complete manual on sh, not a
brief as it is man
> > sh.  The last one doesn't describe many features
both interactive
> > (command line editing, using history
interactively, and many others)
> > and scripting (for example, conditional
expressions).
> 
> Here's a "brute-force" manual:
> 
> #!/bin/sh
> for each in `find /etc/rc.d`
>     do more $each
> done

Bonus points for not using cat, but it sounds like you're
recommending a
manual you yourself haven't read.

    $ for each in /etc/rc.d/* ; do more $each ; done

Or skipping the unecessary logic: 

    $ more /etc/rc.d/*

Sarcasm is mostly counterproductive, doncha think?

> If you need more than what is there then you probably
need Kernigan
> and Ritchie's The "C" Programming Language,
(still) available on
> amazon.com.

My guess is the OP is inquiring about scripting in general,
but bash(1)
and readline(3) in particular.  If that's the case, the
manpages should
be more than adequate; a reading of Mendel Cooper's Advanced
Bash
Scripting Guide (available for free at a Google search near
you) would
also be useful for a practical perspective.  Recommending
the K&R book I
don't think is appropriate.

> 
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
[1-10] [11]

about | contact  Other archives ( Real Estate discussion Medical topics )