Re: SPAM: [SLE] Can't run this script



On 10/16/06, Dave Howorth <dhoworth@xxxxxxxxxxxxxxxxx> wrote:

Duff Mckagan wrote:
> I am learning Shell Programming ..but the book I have is "Unix Shell
> Programming" and I know there are gonna be some differences, but in this
> case, Error Redirection is not working as wanted...
>
> Here's the script.
>
> i=a
> echo `i` 2>> err
>
> Can somebody point out the error? ..if there's any ..lol
>
>
> Also, I want to install "ksh" on SuSE.

If the reason you want ksh is because your book uses it, I'd recommend
that you go and buy a book based on bash instead. bash is much more
widely used on Linux, so it's more useful to learn that, IMHO.

Cheers, Dave

No thats not the point...

The book is about 'Unix Shell Programming - Bourne, C and Korn Shells'

But most of the commands related to Bourne should work on Bash.(not sure
though).

Also, they said that the Korn shell is their personal choice..and they
believe its the best of all the three...I guess the book is a bit old..They
never mentioned the Bash Shell...(cuz its wasn't Borne again :P - Bash -
Bourne Again Shell...

Its old..but yeah..its helping..:)



Can anybody suggest any good author Books for Bash Scripting?

--
http://mckagan.googlepages.com


Relevant Pages

  • Re: Announcement: bashcritic
    ... Here strings are very recent in bash. ... there's only one Bourne-like shell that doesn't support ... export var=value and that's the Bourne shell itself. ... fashioned way with the test command}. ...
    (comp.unix.shell)
  • Re: .cshrc
    ... It's for the Bourne type shells (sh, and bash), but I'm ... IIRC, there's a .bashrc for bash, just as there is, IIRC, a ... "bash" is an acronym for "Bourne Again SHell", ...
    (freebsd-questions)
  • How alternate shells work under SOL9?
    ... I get the Bash prompt, ... Where do I modify the environments of the alternate shells (Bash, C shell, Korn shell) in SOL 9? ... It would be nice to set some environment variables, such as PS1, at the time the parent BASH shell process is being loaded as a process under the default Bourne shell. ...
    (comp.unix.solaris)
  • Re: bash: WHY???
    ... >>because that's what Unix likes to call it. ... > the Bourne shell. ... > sh is sh, csh is csh, and bash is bash. ... bourne shell available. ...
    (comp.unix.solaris)
  • Re: [Long] about ksh93
    ... >> Korn Shell 93 ROCKS! ... > ksh93 one of the worst shell ever written, and especilly, its claim to ... Note that some of them also apply to other Bourne like ... > shells like bash or zsh or to shells in general. ...
    (comp.unix.shell)