### Copyright (C) 1996,97 Per Zacho ### 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 of the License, or ### (at your option) any later version. ### ### This 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., 675 Mass Ave, Cambridge, MA 02139, USA. proc version {} { # Bash version Desc "Select which version of Bash, you want to generate for."\ "If you are in doubt, please type the following in a Bash shell:\n"\ "\"echo \$BASH_VERSION\".\n" ShortDesc "Bash version" Header head1 -text "Bash version"\ -background gray\ -help "This module is able to generate specific options for Bash version"\ "2.0. Naturally, these option will not be accepted by prior versions,"\ "which is why you have to specify what version you use." Radio bash -text "Which version of Bash do you want to generate for"\ -defaultIndex 0\ -entryhelp {"1.14.4 (to 2.0)" "Bash versions ranging from 1.14.4 to 2.0."\ "2.0" "Bash version 2.0."}\ -help "If you are in doubt, please type the following in a"\ "Bash shell:\n\"echo \$BASH_VERSION\""\ -packFrame:fill x Line line1 Label bashvers -text "Bash reports following version information: "\ -help "This information is extracted from shell. If not"\ available, Bash might not work--either due to incomplete path,"\ or simply because it has not been installed yet."\ -export 0 ShowPage { ### Try to extract version information from shell ### set temp "" catch {set temp [exec bash -c "echo \$BASH_VERSION"]} if {$temp != ""} { set bashvers $temp } { set bashvers "n/a" } } }