[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Examples for bash-builtins

From: guettli
Subject: Examples for bash-builtins
Date: Thu, 21 Jun 2001 10:34:55 +0200

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-I/home/swt/doko/export/packages/bash/bash-2.03/lib -I/usr/include -g -O2
uname output: Linux sonne 2.2.17 #1 Sun Feb 11 02:02:22 UTC 2001 i686 unknown
Machine Type: i386-pc-linux-gnu

Bash Version: 2.03
Patch Level: 0
Release Status: release

  I think it would really good if there is a simple example in the
  help-page of "let" which shows how to use it:

  $ i=1
  $ let "i=i+1"
  $ echo $i

  Please include it and help making Unix a little more newbie-friendly.
  It took me more time than necessary to learn. I worked as a Linux teacher
  last week and saw that the pupils had the same problems that I had.

  An other example could be usefull for the "if" command. I was
  thinking about something like this:

  if [ -f foo ]; then
    echo "the file foo exists"
    echo "foo is not here"

  A link from the help-page for while to the "break" command would
  be usefull, too.

  If you have no time to include these examples I could patch the sources
  and I will send you this patch. Please let me know what you think

reply via email to

[Prev in Thread] Current Thread [Next in Thread]