From: Joe Z. <jz...@us...> - 2003-04-23 01:41:25
|
Update of /cvsroot/bobs/bobs/bash In directory sc8-pr-cvs1:/tmp/cvs-serv21254/bash Modified Files: cmdloop Log Message: Added an explanation for the parameter expansion '${file##*.}' Index: cmdloop =================================================================== RCS file: /cvsroot/bobs/bobs/bash/cmdloop,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- cmdloop 23 Jul 2002 05:15:07 -0000 1.4 +++ cmdloop 23 Apr 2003 01:41:21 -0000 1.5 @@ -19,6 +19,10 @@ if [ -e $file ] then echo "Starting $file" + +# ${file##*.} resolves to the extension of the file name +# File name 'cmd.1048828727.bash' resolves to just 'bash' +# See 'parameter expansion' in 'info bash' ${file##*.} $file $DELCMD $file echo "Finished $file" |