#--------------- README203.os2-----------------------------------------------# ** ** **** **** ***** ***** *** *** *** *** *** *** *** *** *** **** ***** *** * *** *** *** ****** ** *** ** *** *** ****** **** **** *** *** ** ** ***** **** *** **** *** *** ** * *** *** *** *** *** *** * *** *** *** *** **** ***** *** *** *** *** ** *** ***** *** *** *** *** ** *** ****** *** *** *** *** ** *** ***** *** *** *** ** *** *** * *** *** *** *** *** *** *** * ** *** *** *** ** **** **** * ** ** *** *** **** ** ****** **** *** ** *** *** ***** **** ** * **** ******* ****** version 2.03 for OS/2 Table ofContents ================ Introduction @int About bash @bas OS/2 patch and Japanization patch I used @pat Documentations You Need to Get @doc Installation @ins Setup environment @set Compile from source @com Introduction @int ============ I love OS/2, for user-friendly Workplace Shell and its surprising stability. Needless to say, open source softwares are OPEN to OS/2 users. A lot of GNU utilities and other open source softwares have been ported to OS/2. In my com- puter, command line oriented and XFree86 freewares are almost common in OS/2 and in Linux (Vine 1.1). Thanks to Japanese Linux and FreeBSD community, I applied Japanization patches to nearly all essential freewares in OS/2. Platform independency of open source softwares are high. As long as they are active, OS/2 never be dead, I believe. SAWATAISHI Jun http://www2s.biglobe.ne.jp/~vtgf3mpr/ Required environment to install precompiled bash @env ================================================ OS/2 version 3 (?) or later emx runtime 0.9d (0.9c okay ?) ftp://hobbes.nmsu.edu/pub/os2/dev/emx/v0.9d/emxrt.zip ftp://ftp.leo.org/pub/comp/os/os2/leo/gnu/emx+gcc/emxrt.zip About bash @bas ========== Description from bash manual: Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh). OS/2 patch and Japanization patch I used @pat ======================================== Andrew Zabolotny ported GNU bash version 2.00 to OS/2. I totally depend on his splendid work. You can get his package (executables and patch files). ftp://ftp.leo.org/pub/comp/os/os2/leo/gnu/shells/bash-os2-2.0-266.zip Thanks to YOKOTA Yoshinori , we can use Japanization patch for bash version 2.03. ftp://ftp.yynet.tama.tokyo.jp/pub/shell/bash/bash-2.03.jpatch.990305.gz This package includes precompiled `bash.exe' and fundamental documentations, initilization files (.inputrc, .bashrc ...), and a OS/2 diff files which already contain Zabolotny's and Yokota's patch. Documentations You Need to Get @doc ============================== This package doesn't include main manuals. Get them from GNU ftp site or its mirrors. ftp://ftp.gnu.org/pub/gnu/bash-doc-2.03.tar.gz ftp://ftp.cwru.edu/pub/bash/bash-doc-2.03.tar.gz ftp://ftp.lab.kdd.co.jp/pub/GNU/bash/bash-doc-2.03.tar.gz Installation @ins ============ Unzip `bash203.zip' and enter a directory `bash-2.03'. Read docs in `\bash-2.03\ForOS2user' for OS/2 specific instructions written by Andrew Zabolotny. In `doc' directory, you see copyright notice (COPYING), FAQ's, manpage, information on Japanization, and other essential documents. Copy `bash.exe' somewhere in a directory specified by environment variable PATH. Unless you did not setup TERMCAP, copy `ForOS2user\etc\termcap.dat' or ForOS2user\etc\termcap.dat2' to SOME_DIRECTORY. If SOME_DIRECTORY equals to "c:/emx/etc", in your `config.sys': set TERMCAP=c:/emx/etc/termcap.dat[2] set TERM=os2 I recommend you to install `termcap.dat2' which I modified for more beautiful color appearance. If environment variable HOME is "c:/emx", copy `ForOS2usr\home\.inputrc' or `ForOS2usr\home\.inputrc-kanji' to "c:/emx/.inputrc". `.inputrc-kanji' setup by me includes configuration for SJIS Kanji. If environment variable HOME is "c:/emx", copy `bash-2.03\ForOS2user\home\.bashrc' in "c:/emx". `.bashrc-jsawa' and `.bash_alias' in `bash-2.03\ForOS2user\home\' are my files. If you are new to bash, you may get suggestion from my configra- tion. Setup environment @set ================= NOTE: "~/" means HOME directory specified by environmental variable HOME ~/.bashrc To configure this file, read original manualas (INFO and MANPAGE format) and Andrew Zabolotny's documents (BUGS, FEATURES, NEWS, INSTALLATION, README.OS2). ~/.inputrc Read GNU readline manual (INFO and MANPAGE format) included in `bash-doc-2.03.tar.gz'. Here, I describe some important settings. (See `.inputrc-kanji') You can choose one of these KANJI modes set kanji-code sjis # set KANJI mode SJIS set kanji-code euc # EUC set kanji-code no # NO To accept 8-bit chars (like KANJI), you may add follwing three lines set convert-meta off set meta-flag on set output-meta on Latest version of GNU readline has two useful functions. completion-ignore-case' If set to on', Readline performs filename matching and completion in a case-insensitive fashion. The default value is off'. menu-complete ()' Similar to complete', but replaces the word to be completed with a single match from the list of possible completions. Repeated execution of menu-complete' steps through the list of possible completions, inserting each match in turn. At the end of the list of completions, the bell is rung and the original text is restored. An argument of N moves N positions forward in the list of matches; a negative argument may be used to move backward through the list. This command is intended to be bound to TAB', but is unbound by default. I recommend you to add following lines to your `~/.inputrc'. "\C-i": menu-complete # TAB key or CTRL + i set completion-ignore-case on Compile from source @com ==================== You need `sh.exe' or `ksh.exe' for shell. `make-prep-os2.sh': this scripts prepare to compile in OS/2, but requires OS/2 version of bash!! So I modified all `Makefile.in's and `config.status'. You do NOT execute this script. 1. Get source ftp://ftp.gnu.org/pub/gnu/bash-2.03.tar.gz ftp://ftp.cwru.edu/pub/bash/bash-2.03.tar.gz ftp://ftp.lab.kdd.co.jp/pub/GNU/bash/bash-2.03.tar.gz 2. Unzip and untar source archive > tar zxvf bash bash-2.03.tar.gz > cd bash-2.03 3. Apply patch bash-2.03> attrib / -r * (or chmod -R +rw *) bash-2.03> gzip -dc SOMEWHRE/bash-2.03-OS2.diff.gz | patch -p1 4. Edit `config.status' line 100: s%@BUILD_DIR@%D:/SRC/bash-2.03-os2%g This line should be change according to your environment. line 105: s%@LOCAL_CFLAGS@%-DKANJI -DSJIS%g If you don't need KANJI suppourt, delete these difinitions. Read `doc/README.jis' for KANJI code support. 5. Create Makefiles bash-2.03> [k]sh config.status # Do not execute `config.status' by bash # Do not execute `configure' 6. Compile and link bash-2.03> make #------------ README203.os2----------------------------------------------EOF