bug-bash
[Top][All Lists]
Advanced

[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' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -I.  
-I/home/swt/doko/export/packages/bash/bash-2.03 
-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

Description:
  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
  2

  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"
  else
    echo "foo is not here"
  fi

  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]