[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indent-tab-mode
From: |
s. keeling |
Subject: |
Re: indent-tab-mode |
Date: |
Sun, 01 Oct 2006 20:25:16 GMT |
User-agent: |
slrn/0.9.8.1 (Debian) |
Gary Wessle <phddas@yahoo.com>:
>
> then how can I indent-while-typing this code
> #!/bin/sh
> #
> # if not vehicle name is given
> # i.e. -z $1 is defined and it is NULL
> #
> # if no command line arg
>
> if [ -z $1 ]
> then
> rental="*** Unknown vehicle ***"
> elif [ -n $1 ]
> then
> # otherwise make first arg as rental
> rental=$1
> fi
>
> case $rental in
> "car") echo "For $rental Rs.20 per k/m";;
> "van") echo "For $rental Rs.10 per k/m";;
> "jeep") ehco "For $rental Rs.5 per k/m";;
Typo:......^^^^
> "bicycle") echo "For $rental 20 paisa per k/m";;
> *) echo "Sorry, I can not get a $rental for you";;
> esac
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Spammers! http://www.spots.ab.ca/~keeling/emails.html