aboutsummaryrefslogtreecommitdiffstats
path: root/examples/scripts/shprompt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scripts/shprompt')
-rwxr-xr-xexamples/scripts/shprompt18
1 files changed, 17 insertions, 1 deletions
diff --git a/examples/scripts/shprompt b/examples/scripts/shprompt
index ec8b997..098c45f 100755
--- a/examples/scripts/shprompt
+++ b/examples/scripts/shprompt
@@ -11,6 +11,22 @@
#
# Chet Ramey
# chet@ins.CWRU.Edu
+#
+# Copyright 2002 Chester Ramey
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# TThis program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
type=file
@@ -44,7 +60,7 @@ do
done
if [ "$OPTIND" -gt 1 ] ; then
- shift $[$OPTIND - 1]
+ shift $(( $OPTIND - 1 ))
fi
while :