winbash-checkins Mailing List for winbash - bash for win32 (Page 2)
Brought to you by:
enricobrunetta,
xks
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
(119) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: kevin s. <xk...@us...> - 2002-03-24 20:56:05
|
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv18184 Removed Files: debug.reg Log Message: rather than messing with the registry, you can run bash in the msdev debugger by doing 'msdev ./bash.exe' from the command line --- debug.reg DELETED --- |
From: Enrico B. <enr...@us...> - 2002-03-20 12:38:06
|
Update of /cvsroot/winbash/bash-2.0.5a In directory usw-pr-cvs1:/tmp/cvs-serv28248 Log Message: GNU bash 2.0.5a Status: Vendor Tag: GNU Release Tags: bash_2_0_5a N bash-2.0.5a/CHANGES N bash-2.0.5a/COMPAT N bash-2.0.5a/COPYING N bash-2.0.5a/INSTALL N bash-2.0.5a/MANIFEST N bash-2.0.5a/NEWS N bash-2.0.5a/NOTES N bash-2.0.5a/README N bash-2.0.5a/AUTHORS N bash-2.0.5a/Y2K N bash-2.0.5a/configure.in N bash-2.0.5a/configure N bash-2.0.5a/Makefile.in N bash-2.0.5a/config-top.h N bash-2.0.5a/config-bot.h N bash-2.0.5a/config.h.in N bash-2.0.5a/aclocal.m4 N bash-2.0.5a/array.c N bash-2.0.5a/arrayfunc.c N bash-2.0.5a/eval.c N bash-2.0.5a/print_cmd.c N bash-2.0.5a/general.c N bash-2.0.5a/list.c N bash-2.0.5a/locale.c N bash-2.0.5a/stringlib.c N bash-2.0.5a/variables.c N bash-2.0.5a/make_cmd.c N bash-2.0.5a/copy_cmd.c N bash-2.0.5a/unwind_prot.c N bash-2.0.5a/dispose_cmd.c N bash-2.0.5a/bashhist.c N bash-2.0.5a/hashcmd.c N bash-2.0.5a/hashlib.c N bash-2.0.5a/parse.y N bash-2.0.5a/pathexp.c N bash-2.0.5a/subst.c N bash-2.0.5a/shell.c N bash-2.0.5a/trap.c N bash-2.0.5a/sig.c N bash-2.0.5a/siglist.c N bash-2.0.5a/version.c N bash-2.0.5a/flags.c N bash-2.0.5a/jobs.c N bash-2.0.5a/input.c N bash-2.0.5a/mailcheck.c N bash-2.0.5a/test.c N bash-2.0.5a/expr.c N bash-2.0.5a/alias.c N bash-2.0.5a/execute_cmd.c N bash-2.0.5a/findcmd.c N bash-2.0.5a/redir.c N bash-2.0.5a/bashline.c N bash-2.0.5a/braces.c N bash-2.0.5a/bracecomp.c N bash-2.0.5a/nojobs.c N bash-2.0.5a/error.c N bash-2.0.5a/xmalloc.c N bash-2.0.5a/pcomplete.c N bash-2.0.5a/pcomplib.c N bash-2.0.5a/mksyntax.c N bash-2.0.5a/alias.h N bash-2.0.5a/builtins.h N bash-2.0.5a/bashhist.h N bash-2.0.5a/bashline.h N bash-2.0.5a/conftypes.h N bash-2.0.5a/patchlevel.h N bash-2.0.5a/variables.h N bash-2.0.5a/array.h N bash-2.0.5a/arrayfunc.h N bash-2.0.5a/jobs.h N bash-2.0.5a/findcmd.h N bash-2.0.5a/quit.h N bash-2.0.5a/hashlib.h N bash-2.0.5a/flags.h N bash-2.0.5a/shell.h N bash-2.0.5a/syntax.h N bash-2.0.5a/pathexp.h N bash-2.0.5a/parser.h N bash-2.0.5a/pcomplete.h N bash-2.0.5a/sig.h N bash-2.0.5a/test.h N bash-2.0.5a/trap.h N bash-2.0.5a/general.h N bash-2.0.5a/unwind_prot.h N bash-2.0.5a/input.h N bash-2.0.5a/error.h N bash-2.0.5a/command.h N bash-2.0.5a/externs.h N bash-2.0.5a/siglist.h N bash-2.0.5a/subst.h N bash-2.0.5a/dispose_cmd.h N bash-2.0.5a/hashcmd.h N bash-2.0.5a/bashansi.h N bash-2.0.5a/bashjmp.h N bash-2.0.5a/bashintl.h N bash-2.0.5a/make_cmd.h N bash-2.0.5a/execute_cmd.h N bash-2.0.5a/redir.h N bash-2.0.5a/y.tab.c N bash-2.0.5a/bashtypes.h N bash-2.0.5a/mailcheck.h N bash-2.0.5a/pathnames.h N bash-2.0.5a/xmalloc.h N bash-2.0.5a/y.tab.h N bash-2.0.5a/parser-built N bash-2.0.5a/MANIFEST.doc N bash-2.0.5a/CWRU/PLATFORMS N bash-2.0.5a/CWRU/README N bash-2.0.5a/CWRU/POSIX.NOTES N bash-2.0.5a/CWRU/changelog N bash-2.0.5a/CWRU/sh-redir-hack N bash-2.0.5a/CWRU/mh-folder-comp N bash-2.0.5a/CWRU/misc/open-files.c N bash-2.0.5a/CWRU/misc/sigs.c N bash-2.0.5a/CWRU/misc/pid.c N bash-2.0.5a/CWRU/misc/sigstat.c N bash-2.0.5a/CWRU/misc/bison N bash-2.0.5a/CWRU/misc/errlist.c N bash-2.0.5a/CWRU/misc/hpux10-dlfcn.h N bash-2.0.5a/builtins/Makefile.in N bash-2.0.5a/builtins/alias.def N bash-2.0.5a/builtins/bind.def N bash-2.0.5a/builtins/break.def N bash-2.0.5a/builtins/builtin.def N bash-2.0.5a/builtins/cd.def N bash-2.0.5a/builtins/colon.def N bash-2.0.5a/builtins/command.def N bash-2.0.5a/builtins/complete.def N bash-2.0.5a/builtins/common.c N bash-2.0.5a/builtins/declare.def N bash-2.0.5a/builtins/echo.def N bash-2.0.5a/builtins/enable.def N bash-2.0.5a/builtins/eval.def N bash-2.0.5a/builtins/evalfile.c N bash-2.0.5a/builtins/evalstring.c N bash-2.0.5a/builtins/exec.def N bash-2.0.5a/builtins/exit.def N bash-2.0.5a/builtins/fc.def N bash-2.0.5a/builtins/fg_bg.def N bash-2.0.5a/builtins/getopt.c N bash-2.0.5a/builtins/getopt.h N bash-2.0.5a/builtins/getopts.def N bash-2.0.5a/builtins/hash.def N bash-2.0.5a/builtins/help.def N bash-2.0.5a/builtins/let.def N bash-2.0.5a/builtins/history.def N bash-2.0.5a/builtins/jobs.def N bash-2.0.5a/builtins/kill.def N bash-2.0.5a/builtins/mkbuiltins.c N bash-2.0.5a/builtins/printf.def N bash-2.0.5a/builtins/pushd.def N bash-2.0.5a/builtins/read.def N bash-2.0.5a/builtins/reserved.def N bash-2.0.5a/builtins/return.def N bash-2.0.5a/builtins/set.def N bash-2.0.5a/builtins/setattr.def N bash-2.0.5a/builtins/shift.def N bash-2.0.5a/builtins/shopt.def N bash-2.0.5a/builtins/source.def N bash-2.0.5a/builtins/suspend.def N bash-2.0.5a/builtins/test.def N bash-2.0.5a/builtins/times.def N bash-2.0.5a/builtins/trap.def N bash-2.0.5a/builtins/type.def N bash-2.0.5a/builtins/ulimit.def N bash-2.0.5a/builtins/umask.def N bash-2.0.5a/builtins/wait.def N bash-2.0.5a/builtins/psize.c N bash-2.0.5a/builtins/psize.sh N bash-2.0.5a/builtins/inlib.def N bash-2.0.5a/builtins/bashgetopt.c N bash-2.0.5a/builtins/common.h N bash-2.0.5a/builtins/bashgetopt.h N bash-2.0.5a/cross-build/cygwin32.cache N bash-2.0.5a/cross-build/win32sig.h N bash-2.0.5a/cross-build/x86-beos.cache N bash-2.0.5a/cross-build/beos-sig.h N bash-2.0.5a/cross-build/opennt.cache N bash-2.0.5a/doc/FAQ N bash-2.0.5a/doc/Makefile.in N bash-2.0.5a/doc/bash.1 N bash-2.0.5a/doc/bashbug.1 N bash-2.0.5a/doc/builtins.1 N bash-2.0.5a/doc/rbash.1 N bash-2.0.5a/doc/README N bash-2.0.5a/doc/INTRO N bash-2.0.5a/doc/texinfo.tex N bash-2.0.5a/doc/bashref.texi N bash-2.0.5a/doc/bashref.info N bash-2.0.5a/doc/article.ms N bash-2.0.5a/doc/htmlpost.sh N bash-2.0.5a/doc/article.ps N bash-2.0.5a/doc/rose94.ps N bash-2.0.5a/doc/bash.ps N bash-2.0.5a/doc/bashbug.ps N bash-2.0.5a/doc/builtins.ps N bash-2.0.5a/doc/rbash.ps N bash-2.0.5a/doc/bashref.ps N bash-2.0.5a/doc/bashref.dvi N bash-2.0.5a/doc/bash.0 N bash-2.0.5a/doc/bashbug.0 N bash-2.0.5a/doc/builtins.0 N bash-2.0.5a/doc/rbash.0 N bash-2.0.5a/doc/article.txt N bash-2.0.5a/doc/bash.html N bash-2.0.5a/doc/bashref.html N bash-2.0.5a/examples/bashdb/PERMISSION N bash-2.0.5a/examples/bashdb/README N bash-2.0.5a/examples/bashdb/bashdb N bash-2.0.5a/examples/bashdb/bashdb.fns N bash-2.0.5a/examples/bashdb/bashdb.pre N bash-2.0.5a/examples/complete/complete-examples N bash-2.0.5a/examples/complete/complete.ianmac N bash-2.0.5a/examples/complete/complete2.ianmac N bash-2.0.5a/examples/complete/complete.freebsd N bash-2.0.5a/examples/complete/complete.gnu-longopt N bash-2.0.5a/examples/functions/array-stuff N bash-2.0.5a/examples/functions/array-to-string N bash-2.0.5a/examples/functions/autoload N bash-2.0.5a/examples/functions/autoload.v2 N bash-2.0.5a/examples/functions/autoload.v3 N bash-2.0.5a/examples/functions/basename N bash-2.0.5a/examples/functions/basename2 N bash-2.0.5a/examples/functions/coproc.bash N bash-2.0.5a/examples/functions/coshell.README N bash-2.0.5a/examples/functions/coshell.bash N bash-2.0.5a/examples/functions/csh-compat N bash-2.0.5a/examples/functions/dirfuncs N bash-2.0.5a/examples/functions/dirname N bash-2.0.5a/examples/functions/emptydir N bash-2.0.5a/examples/functions/exitstat N bash-2.0.5a/examples/functions/external N bash-2.0.5a/examples/functions/fact N bash-2.0.5a/examples/functions/fstty N bash-2.0.5a/examples/functions/func N bash-2.0.5a/examples/functions/gethtml N bash-2.0.5a/examples/functions/getoptx.bash N bash-2.0.5a/examples/functions/inetaddr N bash-2.0.5a/examples/functions/inpath N bash-2.0.5a/examples/functions/isnum.bash N bash-2.0.5a/examples/functions/isnum2 N bash-2.0.5a/examples/functions/jdate.bash N bash-2.0.5a/examples/functions/jj.bash N bash-2.0.5a/examples/functions/keep N bash-2.0.5a/examples/functions/ksh-cd N bash-2.0.5a/examples/functions/ksh-compat-test N bash-2.0.5a/examples/functions/kshenv N bash-2.0.5a/examples/functions/login N bash-2.0.5a/examples/functions/lowercase N bash-2.0.5a/examples/functions/manpage N bash-2.0.5a/examples/functions/mhfold N bash-2.0.5a/examples/functions/notify.bash N bash-2.0.5a/examples/functions/pathfuncs N bash-2.0.5a/examples/functions/recurse N bash-2.0.5a/examples/functions/repeat2 N bash-2.0.5a/examples/functions/repeat3 N bash-2.0.5a/examples/functions/seq N bash-2.0.5a/examples/functions/seq2 N bash-2.0.5a/examples/functions/shcat N bash-2.0.5a/examples/functions/shcat2 N bash-2.0.5a/examples/functions/sort-pos-params N bash-2.0.5a/examples/functions/substr N bash-2.0.5a/examples/functions/substr2 N bash-2.0.5a/examples/functions/term N bash-2.0.5a/examples/functions/whatis N bash-2.0.5a/examples/functions/whence N bash-2.0.5a/examples/functions/which N bash-2.0.5a/examples/functions/xalias.bash N bash-2.0.5a/examples/functions/xfind.bash N bash-2.0.5a/examples/scripts/adventure.sh N bash-2.0.5a/examples/scripts/bcsh.sh N bash-2.0.5a/examples/scripts/cat.sh N bash-2.0.5a/examples/scripts/center N bash-2.0.5a/examples/scripts/dd-ex.sh N bash-2.0.5a/examples/scripts/fixfiles.bash N bash-2.0.5a/examples/scripts/hanoi.bash N bash-2.0.5a/examples/scripts/inpath N bash-2.0.5a/examples/scripts/krand.bash N bash-2.0.5a/examples/scripts/line-input.bash N bash-2.0.5a/examples/scripts/nohup.bash N bash-2.0.5a/examples/scripts/precedence N bash-2.0.5a/examples/scripts/randomcard.bash N bash-2.0.5a/examples/scripts/scrollbar N bash-2.0.5a/examples/scripts/scrollbar2 N bash-2.0.5a/examples/scripts/showperm.bash N bash-2.0.5a/examples/scripts/shprompt N bash-2.0.5a/examples/scripts/spin.bash N bash-2.0.5a/examples/scripts/timeout N bash-2.0.5a/examples/scripts/vtree2 N bash-2.0.5a/examples/scripts/vtree3 N bash-2.0.5a/examples/scripts/vtree3a N bash-2.0.5a/examples/scripts/websrv.sh N bash-2.0.5a/examples/scripts/xterm_title N bash-2.0.5a/examples/scripts/zprintf N bash-2.0.5a/examples/scripts.v2/PERMISSION N bash-2.0.5a/examples/scripts.v2/README N bash-2.0.5a/examples/scripts.v2/arc2tarz N bash-2.0.5a/examples/scripts.v2/bashrand N bash-2.0.5a/examples/scripts.v2/cal2day.bash N bash-2.0.5a/examples/scripts.v2/cdhist.bash N bash-2.0.5a/examples/scripts.v2/corename N bash-2.0.5a/examples/scripts.v2/fman N bash-2.0.5a/examples/scripts.v2/frcp N bash-2.0.5a/examples/scripts.v2/lowercase N bash-2.0.5a/examples/scripts.v2/ncp N bash-2.0.5a/examples/scripts.v2/newext N bash-2.0.5a/examples/scripts.v2/nmv N bash-2.0.5a/examples/scripts.v2/pages N bash-2.0.5a/examples/scripts.v2/pf N bash-2.0.5a/examples/scripts.v2/rename N bash-2.0.5a/examples/scripts.v2/repeat N bash-2.0.5a/examples/scripts.v2/untar N bash-2.0.5a/examples/scripts.v2/uudec N bash-2.0.5a/examples/scripts.v2/uuenc N bash-2.0.5a/examples/scripts.v2/vtree N bash-2.0.5a/examples/scripts.v2/where N bash-2.0.5a/examples/scripts.v2/pmtop N bash-2.0.5a/examples/scripts.v2/shprof N bash-2.0.5a/examples/scripts.noah/PERMISSION N bash-2.0.5a/examples/scripts.noah/README N bash-2.0.5a/examples/scripts.noah/aref.bash N bash-2.0.5a/examples/scripts.noah/bash.sub.bash N bash-2.0.5a/examples/scripts.noah/bash_version.bash N bash-2.0.5a/examples/scripts.noah/meta.bash N bash-2.0.5a/examples/scripts.noah/mktmp.bash N bash-2.0.5a/examples/scripts.noah/number.bash N bash-2.0.5a/examples/scripts.noah/prompt.bash N bash-2.0.5a/examples/scripts.noah/remap_keys.bash N bash-2.0.5a/examples/scripts.noah/require.bash N bash-2.0.5a/examples/scripts.noah/send_mail.bash N bash-2.0.5a/examples/scripts.noah/shcat.bash N bash-2.0.5a/examples/scripts.noah/source.bash N bash-2.0.5a/examples/scripts.noah/string.bash N bash-2.0.5a/examples/scripts.noah/stty.bash N bash-2.0.5a/examples/scripts.noah/y_or_n_p.bash N bash-2.0.5a/examples/startup-files/README N bash-2.0.5a/examples/startup-files/Bashrc.bfox N bash-2.0.5a/examples/startup-files/Bash_aliases N bash-2.0.5a/examples/startup-files/Bash_profile N bash-2.0.5a/examples/startup-files/bash-profile N bash-2.0.5a/examples/startup-files/bashrc N bash-2.0.5a/examples/startup-files/apple/README N bash-2.0.5a/examples/startup-files/apple/aliases N bash-2.0.5a/examples/startup-files/apple/bash.defaults N bash-2.0.5a/examples/startup-files/apple/environment N bash-2.0.5a/examples/startup-files/apple/login N bash-2.0.5a/examples/startup-files/apple/logout N bash-2.0.5a/examples/startup-files/apple/rc N bash-2.0.5a/examples/misc/suncmd.termcap N bash-2.0.5a/examples/misc/aliasconv.sh N bash-2.0.5a/examples/misc/aliasconv.bash N bash-2.0.5a/examples/misc/cshtobash N bash-2.0.5a/examples/loadables/README N bash-2.0.5a/examples/loadables/template.c N bash-2.0.5a/examples/loadables/Makefile.in N bash-2.0.5a/examples/loadables/necho.c N bash-2.0.5a/examples/loadables/hello.c N bash-2.0.5a/examples/loadables/print.c N bash-2.0.5a/examples/loadables/realpath.c N bash-2.0.5a/examples/loadables/sleep.c N bash-2.0.5a/examples/loadables/truefalse.c N bash-2.0.5a/examples/loadables/getconf.h N bash-2.0.5a/examples/loadables/getconf.c N bash-2.0.5a/examples/loadables/finfo.c N bash-2.0.5a/examples/loadables/cat.c N bash-2.0.5a/examples/loadables/cut.c N bash-2.0.5a/examples/loadables/logname.c N bash-2.0.5a/examples/loadables/basename.c N bash-2.0.5a/examples/loadables/dirname.c N bash-2.0.5a/examples/loadables/tty.c N bash-2.0.5a/examples/loadables/pathchk.c N bash-2.0.5a/examples/loadables/tee.c N bash-2.0.5a/examples/loadables/rmdir.c N bash-2.0.5a/examples/loadables/head.c N bash-2.0.5a/examples/loadables/printenv.c N bash-2.0.5a/examples/loadables/push.c N bash-2.0.5a/examples/loadables/id.c N bash-2.0.5a/examples/loadables/whoami.c N bash-2.0.5a/examples/loadables/uname.c N bash-2.0.5a/examples/loadables/sync.c N bash-2.0.5a/examples/loadables/mkdir.c N bash-2.0.5a/examples/loadables/ln.c N bash-2.0.5a/examples/loadables/unlink.c N bash-2.0.5a/examples/loadables/perl/Makefile.in N bash-2.0.5a/examples/loadables/perl/README N bash-2.0.5a/examples/loadables/perl/bperl.c N bash-2.0.5a/examples/loadables/perl/iperl.c N bash-2.0.5a/include/ansi_stdlib.h N bash-2.0.5a/include/chartypes.h N bash-2.0.5a/include/filecntl.h N bash-2.0.5a/include/maxpath.h N bash-2.0.5a/include/memalloc.h N bash-2.0.5a/include/posixdir.h N bash-2.0.5a/include/posixjmp.h N bash-2.0.5a/include/posixstat.h N bash-2.0.5a/include/posixtime.h N bash-2.0.5a/include/posixwait.h N bash-2.0.5a/include/shtty.h N bash-2.0.5a/include/stdc.h N bash-2.0.5a/include/systimes.h N bash-2.0.5a/include/typemax.h N bash-2.0.5a/include/unionwait.h N bash-2.0.5a/lib/glob/Makefile.in N bash-2.0.5a/lib/glob/strmatch.c N bash-2.0.5a/lib/glob/strmatch.h N bash-2.0.5a/lib/glob/glob.c N bash-2.0.5a/lib/glob/glob.h N bash-2.0.5a/lib/glob/collsyms.h N bash-2.0.5a/lib/glob/ndir.h N bash-2.0.5a/lib/glob/doc/Makefile N bash-2.0.5a/lib/glob/doc/glob.texi N bash-2.0.5a/lib/malloc/Makefile.in N bash-2.0.5a/lib/malloc/getpagesize.h N bash-2.0.5a/lib/malloc/imalloc.h N bash-2.0.5a/lib/malloc/mstats.h N bash-2.0.5a/lib/malloc/shmalloc.h N bash-2.0.5a/lib/malloc/table.h N bash-2.0.5a/lib/malloc/alloca.c N bash-2.0.5a/lib/malloc/malloc.c N bash-2.0.5a/lib/malloc/stats.c N bash-2.0.5a/lib/malloc/table.c N bash-2.0.5a/lib/malloc/trace.c N bash-2.0.5a/lib/malloc/xmalloc.c N bash-2.0.5a/lib/malloc/xleaktrace N bash-2.0.5a/lib/malloc/stub.c N bash-2.0.5a/lib/malloc/i386-alloca.s N bash-2.0.5a/lib/malloc/x386-alloca.s N bash-2.0.5a/lib/readline/COPYING N bash-2.0.5a/lib/readline/Makefile.in N bash-2.0.5a/lib/readline/ChangeLog N bash-2.0.5a/lib/readline/README N bash-2.0.5a/lib/readline/STANDALONE N bash-2.0.5a/lib/readline/readline.c N bash-2.0.5a/lib/readline/vi_mode.c N bash-2.0.5a/lib/readline/emacs_keymap.c N bash-2.0.5a/lib/readline/vi_keymap.c N bash-2.0.5a/lib/readline/history.c N bash-2.0.5a/lib/readline/histexpand.c N bash-2.0.5a/lib/readline/histsearch.c N bash-2.0.5a/lib/readline/histfile.c N bash-2.0.5a/lib/readline/funmap.c N bash-2.0.5a/lib/readline/keymaps.c N bash-2.0.5a/lib/readline/util.c N bash-2.0.5a/lib/readline/terminal.c N bash-2.0.5a/lib/readline/xmalloc.c N bash-2.0.5a/lib/readline/search.c N bash-2.0.5a/lib/readline/isearch.c N bash-2.0.5a/lib/readline/parens.c N bash-2.0.5a/lib/readline/rltty.c N bash-2.0.5a/lib/readline/compat.c N bash-2.0.5a/lib/readline/complete.c N bash-2.0.5a/lib/readline/bind.c N bash-2.0.5a/lib/readline/display.c N bash-2.0.5a/lib/readline/signals.c N bash-2.0.5a/lib/readline/kill.c N bash-2.0.5a/lib/readline/undo.c N bash-2.0.5a/lib/readline/macro.c N bash-2.0.5a/lib/readline/input.c N bash-2.0.5a/lib/readline/callback.c N bash-2.0.5a/lib/readline/nls.c N bash-2.0.5a/lib/readline/shell.c N bash-2.0.5a/lib/readline/savestring.c N bash-2.0.5a/lib/readline/tilde.c N bash-2.0.5a/lib/readline/tilde.h N bash-2.0.5a/lib/readline/rldefs.h N bash-2.0.5a/lib/readline/rlconf.h N bash-2.0.5a/lib/readline/rlshell.h N bash-2.0.5a/lib/readline/rltty.h N bash-2.0.5a/lib/readline/rltypedefs.h N bash-2.0.5a/lib/readline/rlwinsize.h N bash-2.0.5a/lib/readline/readline.h N bash-2.0.5a/lib/readline/tcap.h N bash-2.0.5a/lib/readline/keymaps.h N bash-2.0.5a/lib/readline/history.h N bash-2.0.5a/lib/readline/histlib.h N bash-2.0.5a/lib/readline/chardefs.h N bash-2.0.5a/lib/readline/posixdir.h N bash-2.0.5a/lib/readline/posixjmp.h N bash-2.0.5a/lib/readline/posixstat.h N bash-2.0.5a/lib/readline/ansi_stdlib.h N bash-2.0.5a/lib/readline/rlstdc.h N bash-2.0.5a/lib/readline/rlprivate.h N bash-2.0.5a/lib/readline/xmalloc.h N bash-2.0.5a/lib/readline/doc/Makefile N bash-2.0.5a/lib/readline/doc/manvers.texinfo N bash-2.0.5a/lib/readline/doc/rlman.texinfo N bash-2.0.5a/lib/readline/doc/rltech.texinfo N bash-2.0.5a/lib/readline/doc/rluser.texinfo N bash-2.0.5a/lib/readline/doc/rluserman.texinfo N bash-2.0.5a/lib/readline/doc/hist.texinfo N bash-2.0.5a/lib/readline/doc/hstech.texinfo N bash-2.0.5a/lib/readline/doc/hsuser.texinfo N bash-2.0.5a/lib/readline/examples/Makefile N bash-2.0.5a/lib/readline/examples/excallback.c N bash-2.0.5a/lib/readline/examples/fileman.c N bash-2.0.5a/lib/readline/examples/manexamp.c N bash-2.0.5a/lib/readline/examples/histexamp.c N bash-2.0.5a/lib/readline/examples/rltest.c N bash-2.0.5a/lib/readline/examples/rl.c N bash-2.0.5a/lib/readline/examples/Inputrc N bash-2.0.5a/lib/sh/Makefile.in N bash-2.0.5a/lib/sh/clktck.c N bash-2.0.5a/lib/sh/clock.c N bash-2.0.5a/lib/sh/fmtullong.c N bash-2.0.5a/lib/sh/fmtulong.c N bash-2.0.5a/lib/sh/getcwd.c N bash-2.0.5a/lib/sh/getenv.c N bash-2.0.5a/lib/sh/inet_aton.c N bash-2.0.5a/lib/sh/itos.c N bash-2.0.5a/lib/sh/mailstat.c N bash-2.0.5a/lib/sh/makepath.c N bash-2.0.5a/lib/sh/netopen.c N bash-2.0.5a/lib/sh/oslib.c N bash-2.0.5a/lib/sh/pathcanon.c N bash-2.0.5a/lib/sh/pathphys.c N bash-2.0.5a/lib/sh/rename.c N bash-2.0.5a/lib/sh/setlinebuf.c N bash-2.0.5a/lib/sh/shquote.c N bash-2.0.5a/lib/sh/shtty.c N bash-2.0.5a/lib/sh/snprintf.c N bash-2.0.5a/lib/sh/spell.c N bash-2.0.5a/lib/sh/strcasecmp.c N bash-2.0.5a/lib/sh/strerror.c N bash-2.0.5a/lib/sh/strindex.c N bash-2.0.5a/lib/sh/stringvec.c N bash-2.0.5a/lib/sh/stringlist.c N bash-2.0.5a/lib/sh/strpbrk.c N bash-2.0.5a/lib/sh/strtod.c N bash-2.0.5a/lib/sh/strtoimax.c N bash-2.0.5a/lib/sh/strtol.c N bash-2.0.5a/lib/sh/strtoll.c N bash-2.0.5a/lib/sh/strtoul.c N bash-2.0.5a/lib/sh/strtoull.c N bash-2.0.5a/lib/sh/strtoumax.c N bash-2.0.5a/lib/sh/strtrans.c N bash-2.0.5a/lib/sh/times.c N bash-2.0.5a/lib/sh/timeval.c N bash-2.0.5a/lib/sh/tmpfile.c N bash-2.0.5a/lib/sh/vprint.c N bash-2.0.5a/lib/sh/zread.c N bash-2.0.5a/lib/sh/zwrite.c N bash-2.0.5a/lib/termcap/Makefile.in N bash-2.0.5a/lib/termcap/ltcap.h N bash-2.0.5a/lib/termcap/termcap.c N bash-2.0.5a/lib/termcap/termcap.h N bash-2.0.5a/lib/termcap/tparam.c N bash-2.0.5a/lib/termcap/version.c N bash-2.0.5a/lib/termcap/grot/termcap.info N bash-2.0.5a/lib/termcap/grot/termcap.info-1 N bash-2.0.5a/lib/termcap/grot/termcap.info-2 N bash-2.0.5a/lib/termcap/grot/termcap.info-3 N bash-2.0.5a/lib/termcap/grot/termcap.info-4 N bash-2.0.5a/lib/termcap/grot/NEWS N bash-2.0.5a/lib/termcap/grot/INSTALL N bash-2.0.5a/lib/termcap/grot/ChangeLog N bash-2.0.5a/lib/termcap/grot/texinfo.tex N bash-2.0.5a/lib/termcap/grot/termcap.texi N bash-2.0.5a/lib/termcap/grot/Makefile.in N bash-2.0.5a/lib/termcap/grot/configure N bash-2.0.5a/lib/termcap/grot/configure.in N bash-2.0.5a/lib/termcap/grot/COPYING N bash-2.0.5a/lib/termcap/grot/README N bash-2.0.5a/lib/tilde/README N bash-2.0.5a/lib/tilde/Makefile.in N bash-2.0.5a/lib/tilde/tilde.c N bash-2.0.5a/lib/tilde/tilde.h N bash-2.0.5a/lib/tilde/shell.c N bash-2.0.5a/lib/tilde/doc/tilde.texi N bash-2.0.5a/lib/tilde/doc/Makefile N bash-2.0.5a/support/Makefile.in N bash-2.0.5a/support/bashversion.c N bash-2.0.5a/support/config.guess N bash-2.0.5a/support/config.sub N bash-2.0.5a/support/printenv.sh N bash-2.0.5a/support/printenv.c N bash-2.0.5a/support/bash.xbm N bash-2.0.5a/support/missing N bash-2.0.5a/support/mkclone N bash-2.0.5a/support/mkconffiles N bash-2.0.5a/support/mkdirs N bash-2.0.5a/support/mkversion.sh N bash-2.0.5a/support/mksignames.c N bash-2.0.5a/support/bashbug.sh N bash-2.0.5a/support/man2html.c N bash-2.0.5a/support/recho.c N bash-2.0.5a/support/zecho.c N bash-2.0.5a/support/SYMLINKS N bash-2.0.5a/support/fixlinks N bash-2.0.5a/support/install.sh N bash-2.0.5a/support/texi2dvi N bash-2.0.5a/support/texi2html N bash-2.0.5a/support/xenix-link.sh N bash-2.0.5a/support/shobj-conf N bash-2.0.5a/support/rlvers.sh N bash-2.0.5a/tests/README N bash-2.0.5a/tests/arith-for.tests N bash-2.0.5a/tests/arith-for.right N bash-2.0.5a/tests/arith.tests N bash-2.0.5a/tests/arith.right N bash-2.0.5a/tests/array.tests N bash-2.0.5a/tests/array.right N bash-2.0.5a/tests/array-at-star N bash-2.0.5a/tests/array2.right N bash-2.0.5a/tests/braces-tests N bash-2.0.5a/tests/braces.right N bash-2.0.5a/tests/builtins.tests N bash-2.0.5a/tests/builtins.right N bash-2.0.5a/tests/builtins1.sub N bash-2.0.5a/tests/builtins2.sub N bash-2.0.5a/tests/source1.sub N bash-2.0.5a/tests/source2.sub N bash-2.0.5a/tests/source3.sub N bash-2.0.5a/tests/source4.sub N bash-2.0.5a/tests/source5.sub N bash-2.0.5a/tests/cond.tests N bash-2.0.5a/tests/run-all N bash-2.0.5a/tests/cond.right N bash-2.0.5a/tests/cprint.tests N bash-2.0.5a/tests/cprint.right N bash-2.0.5a/tests/dollar-at-star N bash-2.0.5a/tests/dollar.right N bash-2.0.5a/tests/dstack.tests N bash-2.0.5a/tests/dstack.right N bash-2.0.5a/tests/dstack2.tests N bash-2.0.5a/tests/dstack2.right N bash-2.0.5a/tests/errors.tests N bash-2.0.5a/tests/errors.right N bash-2.0.5a/tests/execscript N bash-2.0.5a/tests/exec.right N bash-2.0.5a/tests/exec1.sub N bash-2.0.5a/tests/exec2.sub N bash-2.0.5a/tests/exec3.sub N bash-2.0.5a/tests/exec4.sub N bash-2.0.5a/tests/exec5.sub N bash-2.0.5a/tests/exec6.sub N bash-2.0.5a/tests/exp-tests N bash-2.0.5a/tests/exp.right N bash-2.0.5a/tests/extglob.tests N bash-2.0.5a/tests/extglob.right N bash-2.0.5a/tests/extglob2.tests N bash-2.0.5a/tests/extglob2.right N bash-2.0.5a/tests/func.tests N bash-2.0.5a/tests/func.right N bash-2.0.5a/tests/func1.sub N bash-2.0.5a/tests/func2.sub N bash-2.0.5a/tests/func3.sub N bash-2.0.5a/tests/getopts.tests N bash-2.0.5a/tests/getopts.right N bash-2.0.5a/tests/getopts1.sub N bash-2.0.5a/tests/getopts2.sub N bash-2.0.5a/tests/getopts3.sub N bash-2.0.5a/tests/getopts4.sub N bash-2.0.5a/tests/getopts5.sub N bash-2.0.5a/tests/getopts6.sub N bash-2.0.5a/tests/getopts7.sub N bash-2.0.5a/tests/glob-test N bash-2.0.5a/tests/glob1.sub N bash-2.0.5a/tests/glob.right N bash-2.0.5a/tests/heredoc.tests N bash-2.0.5a/tests/heredoc.right N bash-2.0.5a/tests/histexp.tests N bash-2.0.5a/tests/run-rsh N bash-2.0.5a/tests/histexp.right N bash-2.0.5a/tests/history.tests N bash-2.0.5a/tests/history.right N bash-2.0.5a/tests/history.list N bash-2.0.5a/tests/ifs-1.test N bash-2.0.5a/tests/ifs-2.test N bash-2.0.5a/tests/ifs-3.test N bash-2.0.5a/tests/ifs-1.right N bash-2.0.5a/tests/ifs-2.right N bash-2.0.5a/tests/ifs-3.right N bash-2.0.5a/tests/input-line.sh N bash-2.0.5a/tests/input-line.sub N bash-2.0.5a/tests/input.right N bash-2.0.5a/tests/invert.tests N bash-2.0.5a/tests/invert.right N bash-2.0.5a/tests/jobs.tests N bash-2.0.5a/tests/jobs1.sub N bash-2.0.5a/tests/jobs2.sub N bash-2.0.5a/tests/jobs3.sub N bash-2.0.5a/tests/jobs.right N bash-2.0.5a/tests/more-exp.tests N bash-2.0.5a/tests/more-exp.right N bash-2.0.5a/tests/new-exp.tests N bash-2.0.5a/tests/new-exp1.sub N bash-2.0.5a/tests/new-exp2.sub N bash-2.0.5a/tests/new-exp3.sub N bash-2.0.5a/tests/new-exp.right N bash-2.0.5a/tests/nquote.tests N bash-2.0.5a/tests/nquote.right N bash-2.0.5a/tests/posix2.tests N bash-2.0.5a/tests/posix2.right N bash-2.0.5a/tests/posixpat.tests N bash-2.0.5a/tests/posixpat.right N bash-2.0.5a/tests/prec.right N bash-2.0.5a/tests/precedence N bash-2.0.5a/tests/printf.tests N bash-2.0.5a/tests/printf.right N bash-2.0.5a/tests/quote.tests N bash-2.0.5a/tests/quote.right N bash-2.0.5a/tests/read.tests N bash-2.0.5a/tests/read.right N bash-2.0.5a/tests/read1.sub N bash-2.0.5a/tests/read2.sub N bash-2.0.5a/tests/read3.sub N bash-2.0.5a/tests/redir.tests N bash-2.0.5a/tests/redir.right N bash-2.0.5a/tests/redir1.sub N bash-2.0.5a/tests/redir2.sub N bash-2.0.5a/tests/redir3.sub N bash-2.0.5a/tests/redir3.in1 N bash-2.0.5a/tests/redir3.in2 N bash-2.0.5a/tests/redir4.sub N bash-2.0.5a/tests/redir4.in1 N bash-2.0.5a/tests/rhs-exp.tests N bash-2.0.5a/tests/rhs-exp.right N bash-2.0.5a/tests/rsh.tests N bash-2.0.5a/tests/rsh.right N bash-2.0.5a/tests/run-minimal N bash-2.0.5a/tests/run-arith-for N bash-2.0.5a/tests/run-arith N bash-2.0.5a/tests/run-array N bash-2.0.5a/tests/run-array2 N bash-2.0.5a/tests/run-braces N bash-2.0.5a/tests/run-builtins N bash-2.0.5a/tests/run-cond N bash-2.0.5a/tests/run-cprint N bash-2.0.5a/tests/run-dirstack N bash-2.0.5a/tests/run-dollars N bash-2.0.5a/tests/run-errors N bash-2.0.5a/tests/run-execscript N bash-2.0.5a/tests/run-exp-tests N bash-2.0.5a/tests/run-extglob N bash-2.0.5a/tests/run-extglob2 N bash-2.0.5a/tests/run-func N bash-2.0.5a/tests/run-getopts N bash-2.0.5a/tests/run-glob-test N bash-2.0.5a/tests/run-heredoc N bash-2.0.5a/tests/run-histexpand N bash-2.0.5a/tests/run-history N bash-2.0.5a/tests/run-ifs-tests N bash-2.0.5a/tests/run-input-test N bash-2.0.5a/tests/run-invert N bash-2.0.5a/tests/run-jobs N bash-2.0.5a/tests/run-more-exp N bash-2.0.5a/tests/run-new-exp N bash-2.0.5a/tests/run-nquote N bash-2.0.5a/tests/run-posix2 N bash-2.0.5a/tests/run-posixpat N bash-2.0.5a/tests/run-precedence N bash-2.0.5a/tests/run-printf N bash-2.0.5a/tests/run-quote N bash-2.0.5a/tests/run-read N bash-2.0.5a/tests/run-redir N bash-2.0.5a/tests/version N bash-2.0.5a/tests/run-rhs-exp N bash-2.0.5a/tests/run-set-e N bash-2.0.5a/tests/run-shopt N bash-2.0.5a/tests/run-strip N bash-2.0.5a/tests/run-test N bash-2.0.5a/tests/run-tilde N bash-2.0.5a/tests/run-trap N bash-2.0.5a/tests/run-type N bash-2.0.5a/tests/run-varenv N bash-2.0.5a/tests/set-e-test N bash-2.0.5a/tests/set-e.right N bash-2.0.5a/tests/shopt.tests N bash-2.0.5a/tests/shopt.right N bash-2.0.5a/tests/strip.tests N bash-2.0.5a/tests/strip.right N bash-2.0.5a/tests/test.tests N bash-2.0.5a/tests/test.right N bash-2.0.5a/tests/tilde-tests N bash-2.0.5a/tests/tilde.right N bash-2.0.5a/tests/trap.tests N bash-2.0.5a/tests/trap.right N bash-2.0.5a/tests/trap1.sub N bash-2.0.5a/tests/trap2.sub N bash-2.0.5a/tests/trap2a.sub N bash-2.0.5a/tests/type.tests N bash-2.0.5a/tests/type.right N bash-2.0.5a/tests/varenv.right N bash-2.0.5a/tests/varenv.sh N bash-2.0.5a/tests/varenv1.sub N bash-2.0.5a/tests/version.mini N bash-2.0.5a/tests/misc/dev-tcp.tests N bash-2.0.5a/tests/misc/perf-script N bash-2.0.5a/tests/misc/perftest N bash-2.0.5a/tests/misc/read-nchars.tests N bash-2.0.5a/tests/misc/redir-t2.sh N bash-2.0.5a/tests/misc/run-r2.sh N bash-2.0.5a/tests/misc/sigint-1.sh N bash-2.0.5a/tests/misc/sigint-2.sh N bash-2.0.5a/tests/misc/sigint-3.sh N bash-2.0.5a/tests/misc/sigint-4.sh N bash-2.0.5a/tests/misc/test-minus-e.1 N bash-2.0.5a/tests/misc/test-minus-e.2 N bash-2.0.5a/tests/misc/wait-bg.tests No conflicts created by this import ***** Bogus filespec: - Imported sources |
From: Enrico B. <enr...@us...> - 2002-03-20 12:33:41
|
Update of /cvsroot/winbash/bash-1.14.7 In directory usw-pr-cvs1:/tmp/cvs-serv27122 Log Message: GNU bash 1.14.7 Status: Vendor Tag: GNU Release Tags: bash_1_14_7 N bash-1.14.7/COPYING N bash-1.14.7/INSTALL N bash-1.14.7/MANIFEST N bash-1.14.7/Makefile N bash-1.14.7/subst.c N bash-1.14.7/README N bash-1.14.7/RELEASE N bash-1.14.7/alias.c N bash-1.14.7/alias.h N bash-1.14.7/ansi_stdlib.h N bash-1.14.7/bashansi.h N bash-1.14.7/bashhist.c N bash-1.14.7/bashhist.h N bash-1.14.7/bashline.c N bash-1.14.7/bashtypes.h N bash-1.14.7/bracecomp.c N bash-1.14.7/braces.c N bash-1.14.7/builtins.h N bash-1.14.7/command.h N bash-1.14.7/config.h N bash-1.14.7/config.h.mini N bash-1.14.7/configure N bash-1.14.7/copy_cmd.c N bash-1.14.7/cpp-Makefile N bash-1.14.7/dispose_cmd.c N bash-1.14.7/dispose_cmd.h N bash-1.14.7/endian.c N bash-1.14.7/error.c N bash-1.14.7/error.h N bash-1.14.7/execute_cmd.c N bash-1.14.7/execute_cmd.h N bash-1.14.7/expr.c N bash-1.14.7/externs.h N bash-1.14.7/filecntl.h N bash-1.14.7/flags.c N bash-1.14.7/flags.h N bash-1.14.7/general.c N bash-1.14.7/general.h N bash-1.14.7/getcwd.c N bash-1.14.7/hash.c N bash-1.14.7/hash.h N bash-1.14.7/input.c N bash-1.14.7/input.h N bash-1.14.7/jobs.c N bash-1.14.7/variables.c N bash-1.14.7/shell.c N bash-1.14.7/jobs.h N bash-1.14.7/parse.y N bash-1.14.7/machines.h N bash-1.14.7/mailcheck.c N bash-1.14.7/make_cmd.c N bash-1.14.7/make_cmd.h N bash-1.14.7/maxpath.h N bash-1.14.7/memalloc.h N bash-1.14.7/newversion.c N bash-1.14.7/nojobs.c N bash-1.14.7/y.tab.c N bash-1.14.7/parser.h N bash-1.14.7/posixstat.h N bash-1.14.7/print_cmd.c N bash-1.14.7/quit.h N bash-1.14.7/NEWS N bash-1.14.7/shell.h N bash-1.14.7/siglist.c N bash-1.14.7/siglist.h N bash-1.14.7/signames.c N bash-1.14.7/stdc.h N bash-1.14.7/trap.c N bash-1.14.7/subst.h N bash-1.14.7/test.c N bash-1.14.7/y.tab.h N bash-1.14.7/trap.h N bash-1.14.7/unwind_prot.c N bash-1.14.7/unwind_prot.h N bash-1.14.7/variables.h N bash-1.14.7/version.c N bash-1.14.7/vprint.c N bash-1.14.7/parser-built N bash-1.14.7/.distribution N bash-1.14.7/.patchlevel N bash-1.14.7/CWRU/PLATFORMS N bash-1.14.7/CWRU/README N bash-1.14.7/CWRU/POSIX.NOTES N bash-1.14.7/CWRU/changelog N bash-1.14.7/CWRU/sh-redir-hack N bash-1.14.7/CWRU/misc/open-files.c N bash-1.14.7/CWRU/misc/sigs.c N bash-1.14.7/CWRU/misc/pid.c N bash-1.14.7/CWRU/misc/sigstat.c N bash-1.14.7/CWRU/misc/bison N bash-1.14.7/CWRU/misc/aux-mach-desc N bash-1.14.7/builtins/ChangeLog N bash-1.14.7/builtins/Makefile N bash-1.14.7/builtins/alias.def N bash-1.14.7/builtins/bind.def N bash-1.14.7/builtins/break.def N bash-1.14.7/builtins/builtin.def N bash-1.14.7/builtins/cd.def N bash-1.14.7/builtins/colon.def N bash-1.14.7/builtins/command.def N bash-1.14.7/builtins/common.c N bash-1.14.7/builtins/declare.def N bash-1.14.7/builtins/echo.def N bash-1.14.7/builtins/enable.def N bash-1.14.7/builtins/eval.def N bash-1.14.7/builtins/exec.def N bash-1.14.7/builtins/exit.def N bash-1.14.7/builtins/fc.def N bash-1.14.7/builtins/fg_bg.def N bash-1.14.7/builtins/getopt.c N bash-1.14.7/builtins/getopt.h N bash-1.14.7/builtins/getopts.def N bash-1.14.7/builtins/hash.def N bash-1.14.7/builtins/hashcom.h N bash-1.14.7/builtins/help.def N bash-1.14.7/builtins/let.def N bash-1.14.7/builtins/history.def N bash-1.14.7/builtins/jobs.def N bash-1.14.7/builtins/kill.def N bash-1.14.7/builtins/mkbuiltins.c N bash-1.14.7/builtins/read.def N bash-1.14.7/builtins/reserved.def N bash-1.14.7/builtins/return.def N bash-1.14.7/builtins/set.def N bash-1.14.7/builtins/setattr.def N bash-1.14.7/builtins/shift.def N bash-1.14.7/builtins/source.def N bash-1.14.7/builtins/suspend.def N bash-1.14.7/builtins/test.def N bash-1.14.7/builtins/times.def N bash-1.14.7/builtins/trap.def N bash-1.14.7/builtins/type.def N bash-1.14.7/builtins/ulimit.def N bash-1.14.7/builtins/umask.def N bash-1.14.7/builtins/wait.def N bash-1.14.7/builtins/psize.c N bash-1.14.7/builtins/psize.sh N bash-1.14.7/builtins/inlib.def N bash-1.14.7/builtins/bashgetopt.c N bash-1.14.7/builtins/common.h N bash-1.14.7/builtins/bashgetopt.h N bash-1.14.7/lib/doc-support/texindex.c N bash-1.14.7/lib/doc-support/getopt.h N bash-1.14.7/lib/doc-support/Makefile N bash-1.14.7/lib/glob/ChangeLog N bash-1.14.7/lib/glob/Makefile N bash-1.14.7/lib/glob/fnmatch.c N bash-1.14.7/lib/glob/fnmatch.h N bash-1.14.7/lib/glob/glob.c N bash-1.14.7/lib/glob/ndir.h N bash-1.14.7/lib/glob/doc/Makefile N bash-1.14.7/lib/glob/doc/glob.texi N bash-1.14.7/lib/malloc/Makefile N bash-1.14.7/lib/malloc/alloca.c N bash-1.14.7/lib/malloc/getpagesize.h N bash-1.14.7/lib/malloc/i386-alloca.s N bash-1.14.7/lib/malloc/malloc.c N bash-1.14.7/lib/malloc/x386-alloca.s N bash-1.14.7/lib/malloc/xmalloc.c N bash-1.14.7/lib/malloclib/Makefile N bash-1.14.7/lib/malloclib/alloca.c N bash-1.14.7/lib/malloclib/i386-alloca.s N bash-1.14.7/lib/malloclib/calloc.c N bash-1.14.7/lib/malloclib/cfree.c N bash-1.14.7/lib/malloclib/x386-alloca.s N bash-1.14.7/lib/malloclib/morecore.c N bash-1.14.7/lib/malloclib/free.c N bash-1.14.7/lib/malloclib/getpagesize.h N bash-1.14.7/lib/malloclib/malloc.c N bash-1.14.7/lib/malloclib/malloc.h N bash-1.14.7/lib/malloclib/xmalloc.c N bash-1.14.7/lib/malloclib/mcheck.c N bash-1.14.7/lib/malloclib/memalign.c N bash-1.14.7/lib/malloclib/mstats.c N bash-1.14.7/lib/malloclib/mtrace.awk N bash-1.14.7/lib/malloclib/mtrace.c N bash-1.14.7/lib/malloclib/realloc.c N bash-1.14.7/lib/malloclib/valloc.c N bash-1.14.7/lib/posixheaders/posixstat.h N bash-1.14.7/lib/posixheaders/ansi_stdlib.h N bash-1.14.7/lib/posixheaders/stdc.h N bash-1.14.7/lib/posixheaders/memalloc.h N bash-1.14.7/lib/posixheaders/filecntl.h N bash-1.14.7/lib/readline/COPYING N bash-1.14.7/lib/readline/readline.c N bash-1.14.7/lib/readline/readline.h N bash-1.14.7/lib/readline/ChangeLog N bash-1.14.7/lib/readline/vi_mode.c N bash-1.14.7/lib/readline/history.h N bash-1.14.7/lib/readline/Makefile N bash-1.14.7/lib/readline/chardefs.h N bash-1.14.7/lib/readline/emacs_keymap.c N bash-1.14.7/lib/readline/keymaps.h N bash-1.14.7/lib/readline/vi_keymap.c N bash-1.14.7/lib/readline/history.c N bash-1.14.7/lib/readline/funmap.c N bash-1.14.7/lib/readline/keymaps.c N bash-1.14.7/lib/readline/xmalloc.c N bash-1.14.7/lib/readline/README N bash-1.14.7/lib/readline/STANDALONE N bash-1.14.7/lib/readline/search.c N bash-1.14.7/lib/readline/isearch.c N bash-1.14.7/lib/readline/rldefs.h N bash-1.14.7/lib/readline/rlconf.h N bash-1.14.7/lib/readline/parens.c N bash-1.14.7/lib/readline/rltty.c N bash-1.14.7/lib/readline/complete.c N bash-1.14.7/lib/readline/bind.c N bash-1.14.7/lib/readline/display.c N bash-1.14.7/lib/readline/signals.c N bash-1.14.7/lib/readline/tilde.c N bash-1.14.7/lib/readline/tilde.h N bash-1.14.7/lib/readline/posixstat.h N bash-1.14.7/lib/readline/ansi_stdlib.h N bash-1.14.7/lib/readline/memalloc.h N bash-1.14.7/lib/readline/doc/Makefile N bash-1.14.7/lib/readline/doc/rlman.texinfo N bash-1.14.7/lib/readline/doc/rltech.texinfo N bash-1.14.7/lib/readline/doc/rluser.texinfo N bash-1.14.7/lib/readline/doc/hist.texinfo N bash-1.14.7/lib/readline/doc/hstech.texinfo N bash-1.14.7/lib/readline/doc/hsuser.texinfo N bash-1.14.7/lib/readline/doc/texindex.c N bash-1.14.7/lib/readline/doc/readline.dvi N bash-1.14.7/lib/readline/doc/readline.ps N bash-1.14.7/lib/readline/doc/readline.info N bash-1.14.7/lib/readline/doc/history.ps N bash-1.14.7/lib/readline/doc/history.dvi N bash-1.14.7/lib/readline/doc/history.info N bash-1.14.7/lib/readline/examples/Makefile N bash-1.14.7/lib/readline/examples/fileman.c N bash-1.14.7/lib/readline/examples/manexamp.c N bash-1.14.7/lib/readline/examples/histexamp.c N bash-1.14.7/lib/readline/examples/Inputrc N bash-1.14.7/lib/termcap/Makefile N bash-1.14.7/lib/termcap/termcap.c N bash-1.14.7/lib/termcap/termcap.h N bash-1.14.7/lib/termcap/tparam.c N bash-1.14.7/lib/termcap/version.c N bash-1.14.7/lib/termcap/grot/termcap.info N bash-1.14.7/lib/termcap/grot/termcap.info-1 N bash-1.14.7/lib/termcap/grot/termcap.info-2 N bash-1.14.7/lib/termcap/grot/termcap.info-3 N bash-1.14.7/lib/termcap/grot/termcap.info-4 N bash-1.14.7/lib/termcap/grot/NEWS N bash-1.14.7/lib/termcap/grot/INSTALL N bash-1.14.7/lib/termcap/grot/ChangeLog N bash-1.14.7/lib/termcap/grot/texinfo.tex N bash-1.14.7/lib/termcap/grot/termcap.texi N bash-1.14.7/lib/termcap/grot/Makefile.in N bash-1.14.7/lib/termcap/grot/configure N bash-1.14.7/lib/termcap/grot/configure.in N bash-1.14.7/lib/termcap/grot/COPYING N bash-1.14.7/lib/termcap/grot/README N bash-1.14.7/lib/tilde/ChangeLog N bash-1.14.7/lib/tilde/Makefile N bash-1.14.7/lib/tilde/tilde.c N bash-1.14.7/lib/tilde/tilde.h N bash-1.14.7/lib/tilde/memalloc.h N bash-1.14.7/lib/tilde/doc/tilde.texi N bash-1.14.7/lib/tilde/doc/Makefile N bash-1.14.7/documentation/Makefile N bash-1.14.7/documentation/bash.1 N bash-1.14.7/documentation/bash.ps N bash-1.14.7/documentation/bash.txt N bash-1.14.7/documentation/README N bash-1.14.7/documentation/readline.3 N bash-1.14.7/documentation/readline.ps N bash-1.14.7/documentation/readline.txt N bash-1.14.7/documentation/texinfo.tex N bash-1.14.7/documentation/features.texi N bash-1.14.7/documentation/FAQ N bash-1.14.7/documentation/features.info N bash-1.14.7/documentation/features.ps N bash-1.14.7/documentation/builtins.1 N bash-1.14.7/documentation/builtins.ps N bash-1.14.7/documentation/builtins.txt N bash-1.14.7/documentation/article.ms N bash-1.14.7/documentation/article.ps N bash-1.14.7/documentation/article.txt N bash-1.14.7/documentation/features.dvi N bash-1.14.7/examples/suncmd.termcap N bash-1.14.7/examples/alias-conv.sh N bash-1.14.7/examples/functions/substr N bash-1.14.7/examples/functions/kshenv N bash-1.14.7/examples/functions/autoload N bash-1.14.7/examples/functions/csh-compat N bash-1.14.7/examples/functions/shcat N bash-1.14.7/examples/functions/substr2 N bash-1.14.7/examples/functions/term N bash-1.14.7/examples/functions/whatis N bash-1.14.7/examples/functions/whence N bash-1.14.7/examples/functions/func N bash-1.14.7/examples/functions/dirname N bash-1.14.7/examples/functions/dirfuncs N bash-1.14.7/examples/functions/basename N bash-1.14.7/examples/functions/exitstat N bash-1.14.7/examples/functions/external N bash-1.14.7/examples/functions/fact N bash-1.14.7/examples/functions/manpage N bash-1.14.7/examples/functions/fstty N bash-1.14.7/examples/functions/jj.bash N bash-1.14.7/examples/functions/notify.bash N bash-1.14.7/examples/scripts/shprompt N bash-1.14.7/examples/scripts/adventure.sh N bash-1.14.7/examples/scripts/precedence N bash-1.14.7/examples/scripts/bcsh.sh N bash-1.14.7/examples/startup-files/Bashrc N bash-1.14.7/examples/startup-files/Bash_aliases N bash-1.14.7/examples/startup-files/Bash_profile N bash-1.14.7/examples/startup-files/bash-profile N bash-1.14.7/examples/startup-files/bashrc N bash-1.14.7/portbash/signals.sh N bash-1.14.7/portbash/stdio.sh N bash-1.14.7/portbash/libc.sh N bash-1.14.7/portbash/mkdesc.sh N bash-1.14.7/portbash/README N bash-1.14.7/portbash/strings.sh N bash-1.14.7/portbash/syscalls.sh N bash-1.14.7/portbash/pgrp.c N bash-1.14.7/support/cat-s N bash-1.14.7/support/mksysdefs N bash-1.14.7/support/getcppsyms.c N bash-1.14.7/support/cppmagic N bash-1.14.7/support/bash.xbm N bash-1.14.7/support/PORTING N bash-1.14.7/support/mklinks N bash-1.14.7/support/mkdirs N bash-1.14.7/support/clone-bash N bash-1.14.7/support/bashbug.sh N bash-1.14.7/support/mkmachtype N bash-1.14.7/support/recho.c N bash-1.14.7/support/srcdir N bash-1.14.7/support/SYMLINKS N bash-1.14.7/support/fixlinks N bash-1.14.7/support/printenv N bash-1.14.7/support/inpath N bash-1.14.7/support/install.sh N bash-1.14.7/support/texi2dvi N bash-1.14.7/tests/README N bash-1.14.7/tests/dollar-at.sh N bash-1.14.7/tests/dollar-star.sh N bash-1.14.7/tests/dollar.right N bash-1.14.7/tests/exp-tests N bash-1.14.7/tests/exp.right N bash-1.14.7/tests/glob-test N bash-1.14.7/tests/glob.right N bash-1.14.7/tests/ifs-test-1.sh N bash-1.14.7/tests/ifs-test-2.sh N bash-1.14.7/tests/ifs-test-3.sh N bash-1.14.7/tests/ifs.1.right N bash-1.14.7/tests/ifs.2.right N bash-1.14.7/tests/ifs.3.right N bash-1.14.7/tests/input-line.sh N bash-1.14.7/tests/input-line.sub N bash-1.14.7/tests/input.right N bash-1.14.7/tests/minus-e N bash-1.14.7/tests/minus-e.right N bash-1.14.7/tests/new-exp.tests N bash-1.14.7/tests/new-exp.right N bash-1.14.7/tests/run-all N bash-1.14.7/tests/prec.right N bash-1.14.7/tests/precedence N bash-1.14.7/tests/run-dollars N bash-1.14.7/tests/run-exp-tests N bash-1.14.7/tests/run-glob-test N bash-1.14.7/tests/run-ifs-tests N bash-1.14.7/tests/run-input-test N bash-1.14.7/tests/run-minus-e N bash-1.14.7/tests/run-new-exp N bash-1.14.7/tests/run-precedence N bash-1.14.7/tests/run-set-e-test N bash-1.14.7/tests/run-strip N bash-1.14.7/tests/run-varenv N bash-1.14.7/tests/set-e-test N bash-1.14.7/tests/set-e.right N bash-1.14.7/tests/strip.tests N bash-1.14.7/tests/strip.right N bash-1.14.7/tests/tilde-tests N bash-1.14.7/tests/tilde.right N bash-1.14.7/tests/varenv.right N bash-1.14.7/tests/varenv.sh N bash-1.14.7/tests/misc/chld-trap.sh N bash-1.14.7/tests/misc/dot-test-1.sh N bash-1.14.7/tests/misc/dot-test-1.sub N bash-1.14.7/tests/misc/gotest N bash-1.14.7/tests/misc/perf-script N bash-1.14.7/tests/misc/redir.t1.sh N bash-1.14.7/tests/misc/redir.t2.sh N bash-1.14.7/tests/misc/redir.t3.sh N bash-1.14.7/tests/misc/redir.t3.sub N bash-1.14.7/tests/misc/redir.t4.sh N bash-1.14.7/tests/misc/run.r1.sh N bash-1.14.7/tests/misc/run.r2.sh N bash-1.14.7/tests/misc/run.r3.sh N bash-1.14.7/tests/misc/sigint.t1.sh N bash-1.14.7/tests/misc/sigint.t2.sh N bash-1.14.7/tests/misc/sigint.t3.sh N bash-1.14.7/tests/misc/sigint.t4.sh N bash-1.14.7/tests/misc/test-minus-e.1 N bash-1.14.7/tests/misc/test-minus-e.2 No conflicts created by this import ***** Bogus filespec: - Imported sources |
From: Enrico B. <enr...@us...> - 2002-03-20 02:09:59
|
Update of /cvsroot/winbash/winbash/tests In directory usw-pr-cvs1:/tmp/cvs-serv16581/tests Modified Files: getopts.sh Added Files: run-getopts Log Message: Added test target to top level Makefile. Aligned code (especially in builtins) to closely resemble the GNU bash 1.14.7 source files. A lot more work needs to be done to clean the source up to make some sense out of this mess. I am confident we'll get there sooner or later :) --- NEW FILE: run-getopts --- $BASH < ./getopts.sh Index: getopts.sh =================================================================== RCS file: /cvsroot/winbash/winbash/tests/getopts.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- getopts.sh 9 Mar 2002 15:03:55 -0000 1.3 +++ getopts.sh 20 Mar 2002 02:09:55 -0000 1.4 @@ -47,4 +47,3 @@ [ "${k}" = "kvalue" ] || echo "error k=${k}, expected kvalue" [ "${l}" = "lvalue" ] || echo "error l=${l}, expected lvalue" -echo 'PASSED -- getopts' |
Update of /cvsroot/winbash/winbash/builtins In directory usw-pr-cvs1:/tmp/cvs-serv16581/builtins Modified Files: Makefile alias.def bind.def cd.def command.def common.c declare.def echo.def enable.def exec.def exit.def fc.def getopts.def hash.def help.def history.def read.def return.def set.def setattr.def source.def times.def trap.def type.def ulimit.def umask.def Log Message: Added test target to top level Makefile. Aligned code (especially in builtins) to closely resemble the GNU bash 1.14.7 source files. A lot more work needs to be done to clean the source up to make some sense out of this mess. I am confident we'll get there sooner or later :) Index: Makefile =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/Makefile,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Makefile 10 Mar 2002 15:54:10 -0000 1.3 +++ Makefile 20 Mar 2002 02:09:55 -0000 1.4 @@ -10,7 +10,7 @@ RM = rm -f CP = cp -CPPDEFS = -DWIN32 -D_WINDOWS -D__NT_VC__ -DHAVE_STRING_H +CPPDEFS = -DWIN32 -D_WINDOWS -D__NT_VC__ -DHAVE_STRING_H -DBrainDeath CPPFLAGS += -I. CPPFLAGS += -I../lib CPPFLAGS += -I../dum_inc Index: alias.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/alias.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- alias.def 10 Mar 2002 21:45:13 -0000 1.3 +++ alias.def 20 Mar 2002 02:09:55 -0000 1.4 @@ -37,9 +37,9 @@ # include <stdio.h> # include "../shell.h" # include "../alias.h" -# include "nt_types.h" # include "common.h" +//extern int interactive; static void print_alias (); /* Hack the alias command in a Korn shell way. */ Index: bind.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/bind.def,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- bind.def 11 Mar 2002 14:32:13 -0000 1.6 +++ bind.def 20 Mar 2002 02:09:55 -0000 1.7 @@ -52,14 +52,10 @@ #include <readline/history.h> #include "bashgetopt.h" -#if defined (__NT_VC__) -#include "../nt_types.h" -#endif - static int query_bindings (); extern int bash_readline_initialized; -/*extern int no_line_editing;*/ +//extern int no_line_editing; #define BIND_RETURN(x) do { return_code = x; goto bind_exit; } while (0) Index: cd.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/cd.def,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- cd.def 9 Mar 2002 04:20:36 -0000 1.2 +++ cd.def 20 Mar 2002 02:09:55 -0000 1.3 @@ -37,7 +37,6 @@ #include "../flags.h" #include "../maxpath.h" #include "common.h" -#include "../nt_types.h" #include <windows.h> #include <wincon.h> Index: command.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/command.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- command.def 10 Mar 2002 21:45:14 -0000 1.3 +++ command.def 20 Mar 2002 02:09:55 -0000 1.4 @@ -39,8 +39,9 @@ #endif /* !HAVE_STRING_H */ #include "../shell.h" -#include "../nt_types.h" #include "bashgetopt.h" + +//extern int subshell_environment; static void restore_path (); static char *get_standard_path (); Index: common.c =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/common.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- common.c 11 Mar 2002 14:32:13 -0000 1.5 +++ common.c 20 Mar 2002 02:09:55 -0000 1.6 @@ -36,7 +36,6 @@ #include "../builtins.h" #include "../input.h" #include "../execute_cmd.h" -#include "../nt_types.h" #include "hashcom.h" #include "common.h" #include <tilde/tilde.h> Index: declare.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/declare.def,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- declare.def 11 Mar 2002 01:47:04 -0000 1.4 +++ declare.def 20 Mar 2002 02:09:55 -0000 1.5 @@ -56,7 +56,6 @@ #endif /* !HAVE_STRING_H */ #include "../shell.h" -#include "../nt_types.h" extern int array_needs_making; Index: echo.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/echo.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- echo.def 10 Mar 2002 15:54:11 -0000 1.3 +++ echo.def 20 Mar 2002 02:09:55 -0000 1.4 @@ -58,10 +58,6 @@ # define VALID_ECHO_OPTIONS "n" #endif /* !V9_ECHO */ -#if defined (__NT_VC__) -#include "../nt_types.h" -#endif - /* Print the words in LIST to standard output. If the first word is `-n', then don't print a trailing newline. We also support the echo syntax from Version 9 unix systems. */ Index: enable.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/enable.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- enable.def 10 Mar 2002 15:54:11 -0000 1.3 +++ enable.def 20 Mar 2002 02:09:55 -0000 1.4 @@ -35,10 +35,6 @@ #include "../builtins.h" #include "common.h" -#if defined (__NT_VC__) -#include "../nt_types.h" -#endif - #define ENABLED 1 #define DISABLED 2 Index: exec.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/exec.def,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- exec.def 11 Mar 2002 14:32:13 -0000 1.5 +++ exec.def 20 Mar 2002 02:09:55 -0000 1.6 @@ -41,7 +41,6 @@ #include "../execute_cmd.h" #include "common.h" #include "../flags.h" -#include "../nt_types.h" /* Not all systems declare ERRNO in errno.h... and some systems #define it! */ #if !defined (errno) @@ -132,11 +131,7 @@ end_job_control (); #endif /* JOB_CONTROL */ -#if defined (__NT_VC__) - nt_shell_execve (command, args, export_env); -#else /* !__NT_VC__ */ shell_execve (command, args, export_env); -#endif /* !__NT_VC__ */ adjust_shell_level (1); Index: exit.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/exit.def,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- exit.def 14 Mar 2002 00:52:38 -0000 1.6 +++ exit.def 20 Mar 2002 02:09:55 -0000 1.7 @@ -32,9 +32,11 @@ #include <sys/types.h> #include "../shell.h" #include "../jobs.h" -#include "../nt_types.h" #include "builtext.h" /* for jobs_builtin */ + +//extern int interactive, login_shell; +//extern int last_command_exit_value; static int exit_or_logout (); static int sourced_logout = 0; Index: fc.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/fc.def,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- fc.def 11 Mar 2002 04:50:29 -0000 1.5 +++ fc.def 20 Mar 2002 02:09:55 -0000 1.6 @@ -62,10 +62,6 @@ #include <readline/history.h> #include "bashgetopt.h" -#if defined (__NT_VC__) -#include "../nt_types.h" -#endif - /* Not all systems declare ERRNO in errno.h... and some systems #define it! */ #if !defined (errno) extern int errno; Index: getopts.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/getopts.def,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- getopts.def 11 Mar 2002 14:32:14 -0000 1.6 +++ getopts.def 20 Mar 2002 02:09:55 -0000 1.7 @@ -66,7 +66,6 @@ #endif /* !HAVE_STRING_H */ #include "../shell.h" -#include "../nt_types.h" #if defined (GETOPTS_BUILTIN) #include "getopt.h" Index: hash.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/hash.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- hash.def 10 Mar 2002 15:54:11 -0000 1.3 +++ hash.def 20 Mar 2002 02:09:55 -0000 1.4 @@ -48,10 +48,6 @@ #include "common.h" #include "../execute_cmd.h" -#if defined (__NT_VC__) -#include "../nt_types.h" -#endif - extern int dot_found_in_search; void Index: help.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/help.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- help.def 10 Mar 2002 15:54:11 -0000 1.3 +++ help.def 20 Mar 2002 02:09:55 -0000 1.4 @@ -39,10 +39,6 @@ # define FNM_NOMATCH 1 #endif /* USE_GLOB_LIBRARY */ -#if defined (__NT_VC__) -#include "../nt_types.h" -#endif - /* Print out a list of the known functions in the shell, and what they do. If LIST is supplied, print out the list which matches for each pattern specified. */ Index: history.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/history.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- history.def 10 Mar 2002 15:54:11 -0000 1.3 +++ history.def 20 Mar 2002 02:09:55 -0000 1.4 @@ -44,10 +44,6 @@ #include "../bashhist.h" #include <readline/history.h> -#if defined (__NT_VC__) -#include "../nt_types.h" -#endif - /* History. Arg of -w FILENAME means write file, arg of -r FILENAME means read file. Arg of N means only display that many items. */ Index: read.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/read.def,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- read.def 11 Mar 2002 14:32:14 -0000 1.5 +++ read.def 20 Mar 2002 02:09:55 -0000 1.6 @@ -34,7 +34,6 @@ #include <stdio.h> #include "../shell.h" -#include "nt_types.h" #include "common.h" #define issep(c) (strchr (ifs_chars, (c)) != (char *)0) @@ -131,7 +130,7 @@ #endif { if (i + 2 >= size) - input_string = xrealloc (input_string, size += 128); + input_string = xrealloc (input_string, size += 128); /* If the next character is to be accepted verbatim, a backslash newline pair still disappears from the input. */ @@ -154,16 +153,19 @@ } if (c == '\n') - { + { #if defined (__NT_VC__) - if (input_string[i-1] == '\r') - i--; + if (input_string[i-1] == '\r') + i--; #endif - break; - } + break; + } if (c == CTLESC || c == CTLNUL) - input_string[i++] = CTLESC; + { + saw_escape++; + input_string[i++] = CTLESC; + } input_string[i++] = c; } @@ -173,8 +175,7 @@ discard_unwind_frame ("read_builtin"); #if !defined (__NT_VC__) - FCLOSE (input_stream); - close (fildes); + fclose (input_stream); #endif if (c == EOF) Index: return.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/return.def,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- return.def 14 Mar 2002 00:52:38 -0000 1.4 +++ return.def 20 Mar 2002 02:09:55 -0000 1.5 @@ -30,8 +30,8 @@ $END #include "../shell.h" -#include "../nt_types.h" +//extern int last_command_exit_value; extern int return_catch_flag, return_catch_value; extern jmp_buf return_catch; Index: set.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/set.def,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- set.def 11 Mar 2002 14:32:14 -0000 1.4 +++ set.def 20 Mar 2002 02:09:55 -0000 1.5 @@ -24,10 +24,10 @@ #include <stdio.h> #include "../shell.h" #include "../flags.h" -#include "../nt_types.h" #include "bashgetopt.h" +//extern int interactive; extern int noclobber, no_brace_expansion, posixly_correct; #if defined (READLINE) extern int rl_editing_mode; //, no_line_editing; Index: setattr.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/setattr.def,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- setattr.def 10 Mar 2002 15:54:11 -0000 1.4 +++ setattr.def 20 Mar 2002 02:09:55 -0000 1.5 @@ -25,10 +25,6 @@ #include "common.h" #include "bashgetopt.h" -#if defined (__NT_VC__) -#include "../nt_types.h" -#endif - extern int array_needs_making; extern char *this_command_name; Index: source.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/source.def,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- source.def 14 Mar 2002 00:52:38 -0000 1.6 +++ source.def 20 Mar 2002 02:09:55 -0000 1.7 @@ -50,7 +50,6 @@ #include "../posixstat.h" #include "../filecntl.h" #include "../execute_cmd.h" -#include "../nt_types.h" /* Not all systems declare ERRNO in errno.h... and some systems #define it! */ #if !defined (errno) @@ -61,6 +60,7 @@ extern int return_catch_flag, return_catch_value; extern jmp_buf return_catch; extern int posixly_correct; +//extern int interactive, interactive_shell, last_command_exit_value; /* How many `levels' of sourced files we have. */ int sourcelevel = 0; Index: times.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/times.def,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- times.def 9 Mar 2002 04:20:36 -0000 1.2 +++ times.def 20 Mar 2002 02:09:55 -0000 1.3 @@ -64,7 +64,7 @@ putchar ('\n'); #else /* _POSIX_VERSION || !HAVE_RESOURCE || !RUSAGE_SELF */ -# if !defined (BrainDeath) && !defined (__NT_VC__) +# if !defined (BrainDeath) struct tms t; times (&t); Index: trap.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/trap.def,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- trap.def 11 Mar 2002 14:32:14 -0000 1.4 +++ trap.def 20 Mar 2002 02:09:55 -0000 1.5 @@ -40,7 +40,6 @@ #include <signal.h> #include "../shell.h" #include "../trap.h" -#include "../nt_types.h" #include "common.h" /* The trap command: @@ -61,6 +60,7 @@ #define REVERT 1 /* Revert to this signals original value. */ #define IGNORE 2 /* Ignore this signal. */ +//extern int interactive; trap_builtin (list) WORD_LIST *list; Index: type.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/type.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- type.def 10 Mar 2002 15:54:11 -0000 1.3 +++ type.def 20 Mar 2002 02:09:55 -0000 1.4 @@ -52,10 +52,6 @@ #include "common.h" -#if defined (__NT_VC__) -#include "../nt_types.h" -#endif - extern STRING_INT_ALIST word_token_alist[]; /* For each word in LIST, find out what the shell is going to do with Index: ulimit.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/ulimit.def,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ulimit.def 11 Mar 2002 14:32:14 -0000 1.5 +++ ulimit.def 20 Mar 2002 02:09:55 -0000 1.6 @@ -69,12 +69,12 @@ # include <sys/times.h> #endif -#if defined (_POSIX_VERSION) -# include <limits.h> +#if defined (HAVE_UNISTD_H) +# include <unistd.h> #endif -#if defined (__NT_VC__) -#include "../nt_types.h" +#if defined (HAVE_LIMITS_H) +# include <limits.h> #endif /* Check for the most basic symbols. If they aren't present, this Index: umask.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/umask.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- umask.def 10 Mar 2002 15:54:11 -0000 1.3 +++ umask.def 20 Mar 2002 02:09:55 -0000 1.4 @@ -38,10 +38,6 @@ #include "../posixstat.h" #include "common.h" -#if defined (__NT_VC__) -#include "../nt_types.h" -#endif - /* **************************************************************** */ /* */ /* UMASK Builtin and Helpers */ |
From: Enrico B. <enr...@us...> - 2002-03-20 02:09:58
|
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv16581 Modified Files: .build Makefile execute_cmd.c general.c input.c jobs.c nt_types.h print_cmd.c shell.c shell.h subst.c trap.c variables.c version.h Log Message: Added test target to top level Makefile. Aligned code (especially in builtins) to closely resemble the GNU bash 1.14.7 source files. A lot more work needs to be done to clean the source up to make some sense out of this mess. I am confident we'll get there sooner or later :) Index: .build =================================================================== RCS file: /cvsroot/winbash/winbash/.build,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- .build 14 Mar 2002 02:30:39 -0000 1.11 +++ .build 20 Mar 2002 02:09:54 -0000 1.12 @@ -1 +1 @@ -9 +24 Index: Makefile =================================================================== RCS file: /cvsroot/winbash/winbash/Makefile,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Makefile 16 Mar 2002 02:36:07 -0000 1.9 +++ Makefile 20 Mar 2002 02:09:54 -0000 1.10 @@ -177,13 +177,17 @@ # Define all your symbols before here #-------------------------------------------------------------------------- -all : bash.exe sh.exe +all : sh.exe -bash.exe : builtins/builtins.lib $(BASH-OBJS) - link.exe $(LDFLAGS) -out:$@ $^ $(LDLIBS) +test : + cd tests ; $(MAKE) sh.exe : bash.exe cp $^ $@ + +bash.exe : builtins/builtins.lib $(BASH-OBJS) + link.exe $(LDFLAGS) -out:$@ $^ $(LDLIBS) + builtins/builtins.lib: $(BUILTIN_SRCS) cd builtins ; $(MAKE) Index: execute_cmd.c =================================================================== RCS file: /cvsroot/winbash/winbash/execute_cmd.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- execute_cmd.c 11 Mar 2002 14:32:12 -0000 1.6 +++ execute_cmd.c 20 Mar 2002 02:09:54 -0000 1.7 @@ -23,7 +23,6 @@ #if defined (__NT_VC__) #include <windows.h> #include <malloc.h> -//const char *find_hashed_filename_nt (const char *); #endif /* __NT_VC__ */ #include <stdio.h> @@ -149,16 +148,23 @@ int return_catch_value; jmp_buf return_catch; +/* The value returned by the last synchronous command. */ +//int last_command_exit_value = 0; + /* The list of redirections to perform which will undo the redirections that I made in the shell. */ -REDIRECT *redirection_undo_list = (REDIRECT *) NULL; +REDIRECT *redirection_undo_list = (REDIRECT *)NULL; /* The list of redirections to perform which will undo the internal redirections performed by the `exec' builtin. These are redirections that must be undone even when exec discards redirection_undo_list. */ -REDIRECT *exec_redirection_undo_list = (REDIRECT *) NULL; +REDIRECT *exec_redirection_undo_list = (REDIRECT *)NULL; -struct fd_bitmap *current_fds_to_close = (struct fd_bitmap *) NULL; +/* Non-zero if we have just forked and are currently running in a subshell + environment. */ +//int subshell_environment = 0; + +struct fd_bitmap *current_fds_to_close = (struct fd_bitmap *)NULL; #define FD_BITMAP_DEFAULT_SIZE 32 /* Functions to allocate and deallocate the structures used to pass Index: general.c =================================================================== RCS file: /cvsroot/winbash/winbash/general.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- general.c 11 Mar 2002 04:50:29 -0000 1.5 +++ general.c 20 Mar 2002 02:09:54 -0000 1.6 @@ -702,7 +702,7 @@ char * make_absolute (string, dot_path) char *string, *dot_path; - { +{ char *result; int result_len = string ? strlen(string) : 0; Index: input.c =================================================================== RCS file: /cvsroot/winbash/winbash/input.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- input.c 11 Mar 2002 14:32:12 -0000 1.3 +++ input.c 20 Mar 2002 02:09:54 -0000 1.4 @@ -129,7 +129,6 @@ possible and necessary -- scripts read from stdin are still unbuffered), allocate a new file descriptor to use for bash input, and re-initialize the buffered stream. */ - int check_bash_input (fd) int fd; Index: jobs.c =================================================================== RCS file: /cvsroot/winbash/winbash/jobs.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- jobs.c 11 Mar 2002 14:32:12 -0000 1.6 +++ jobs.c 20 Mar 2002 02:09:54 -0000 1.7 @@ -1583,30 +1583,6 @@ } } - /* If job control is enabled, the job was started with job - control, the job was the foreground job, and it was killed - by SIGINT, then print a newline to compensate for the kernel - printing the ^C without a trailing newline. */ - if (job_control && (jobs[job]->flags & J_JOBCONTROL) && - (jobs[job]->flags & J_FOREGROUND) && - WIFSIGNALED (child->status) && - WTERMSIG (child->status) == SIGINT) - { - /* If SIGINT is not trapped, set the interrupt state if in a - loop so the loop will be broken. If not in a loop, print - the newline that the kernel does not. */ - if (signal_is_trapped (SIGINT) == 0) - { - if (loop_level) - interrupt_state++; - else - { - putchar ('\n'); - fflush (stdout); - } - } - } - notify_and_cleanup (); } else Index: nt_types.h =================================================================== RCS file: /cvsroot/winbash/winbash/nt_types.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- nt_types.h 15 Mar 2002 17:14:55 -0000 1.3 +++ nt_types.h 20 Mar 2002 02:09:54 -0000 1.4 @@ -145,6 +145,8 @@ /* Thread I/O routines. */ extern int thr_printf (const char *, ...); +#define shell_execve(c, a, e) nt_shell_execve(c, a, e); + #if defined (stdin) #undef stdin #endif /* stdin */ Index: print_cmd.c =================================================================== RCS file: /cvsroot/winbash/winbash/print_cmd.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- print_cmd.c 10 Mar 2002 23:25:31 -0000 1.3 +++ print_cmd.c 20 Mar 2002 02:09:54 -0000 1.4 @@ -66,9 +66,9 @@ #define PRINTED_COMMAND_GROW_SIZE 1024 -/* char *the_printed_command = (char *)NULL; */ -/* int command_string_index = 0; */ +//char *the_printed_command = (char *)NULL; __declspec (thread) static int the_printed_command_size = 0; +//int command_string_index = 0; /* Non-zero means the stuff being printed is inside of a function def. */ static int inside_function_def = 0; Index: shell.c =================================================================== RCS file: /cvsroot/winbash/winbash/shell.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- shell.c 11 Mar 2002 14:32:12 -0000 1.6 +++ shell.c 20 Mar 2002 02:09:54 -0000 1.7 @@ -125,15 +125,15 @@ -1 = login shell from "-login" flag. -2 = both from getty, and from flag. */ -/* int login_shell = 0; */ +//int login_shell = 0; /* Non-zero means that at this moment, the shell is interactive. In general, this means that the shell is at this moment reading input from the keyboard. */ -/* int interactive = 0; */ +//int interactive = 0; /* Non-zero means that the shell was started as an interactive shell. */ -/* int interactive_shell = 0; */ +//int interactive_shell = 0; /* Tells what state the shell was in when it started: 0 = non-interactive shell script @@ -147,7 +147,7 @@ int debugging_login_shell = 0; /* The environment that the shell passes to other commands. */ -/* char **shell_environment; */ +//char **shell_environment; /* Non-zero when we are executing a top-level command. */ int executing = 0; @@ -169,7 +169,7 @@ /* The number of times BASH has been executed. This is set by initialize_variables () in variables.c. */ -/* int shell_level = 0; */ +//int shell_level = 0; /* The name of this shell, as taken from argv[0]. */ char *shell_name = (char *)NULL; Index: shell.h =================================================================== RCS file: /cvsroot/winbash/winbash/shell.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- shell.h 11 Mar 2002 14:32:12 -0000 1.4 +++ shell.h 20 Mar 2002 02:09:54 -0000 1.5 @@ -105,3 +105,7 @@ }; extern struct user_info current_user; + +#if defined (__NT_VC__) +#include "../nt_types.h" +#endif Index: subst.c =================================================================== RCS file: /cvsroot/winbash/winbash/subst.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- subst.c 14 Mar 2002 22:05:58 -0000 1.9 +++ subst.c 20 Mar 2002 02:09:54 -0000 1.10 @@ -70,6 +70,8 @@ pid_t last_command_subst_pid = NO_PID; /* Extern functions and variables from different files. */ +//extern int last_command_exit_value, interactive, interactive_shell; +//extern int subshell_environment; extern pid_t nt_make_child (enum dispatch_command_type, COMMAND *, WORD_LIST *, @@ -83,14 +85,13 @@ int, int *, char *); - extern int dollar_dollar_pid, no_brace_expansion; extern int posixly_correct; extern int eof_encountered, eof_encountered_limit, ignoreeof; extern char *this_command_name; extern jmp_buf top_level; #if defined (READLINE) -/* extern int no_line_editing; */ +//extern int no_line_editing; extern int hostname_list_initialized; #endif Index: trap.c =================================================================== RCS file: /cvsroot/winbash/winbash/trap.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- trap.c 11 Mar 2002 14:32:12 -0000 1.6 +++ trap.c 20 Mar 2002 02:09:55 -0000 1.7 @@ -620,10 +620,10 @@ sigmodes[SIGINT] &= ~SIG_INPROGRESS; if (sigmodes[SIGINT] & SIG_CHANGED) - { - free (saved_command); - sigmodes[SIGINT] &= ~SIG_CHANGED; - } + { + free (saved_command); + sigmodes[SIGINT] &= ~SIG_CHANGED; + } } } Index: variables.c =================================================================== RCS file: /cvsroot/winbash/winbash/variables.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- variables.c 11 Mar 2002 14:32:12 -0000 1.5 +++ variables.c 20 Mar 2002 02:09:55 -0000 1.6 @@ -555,11 +555,11 @@ list = (SHELL_VAR **) xrealloc (list, (list_size += 20) * sizeof (SHELL_VAR *)); - list[list_index++] = var; - list[list_index] = (SHELL_VAR *)NULL; - } - tlist = tlist->next; - } + list[list_index++] = var; + list[list_index] = (SHELL_VAR *)NULL; + } + tlist = tlist->next; + } } return (list); } Index: version.h =================================================================== RCS file: /cvsroot/winbash/winbash/version.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- version.h 14 Mar 2002 02:30:39 -0000 1.11 +++ version.h 20 Mar 2002 02:09:55 -0000 1.12 @@ -8,9 +8,9 @@ #define PATCHLEVEL 7 /* The last built version of this shell. */ -#define BUILDVERSION 9 +#define BUILDVERSION 24 /* A version string for use by sccs and the what command. */ -#define SCCSVERSION "@(#)Bash version 1.14.7(9) GNU" +#define SCCSVERSION "@(#)Bash version 1.14.7(24) GNU" |
From: Enrico B. <enr...@us...> - 2002-03-20 02:09:58
|
Update of /cvsroot/winbash/winbash/lib/readline In directory usw-pr-cvs1:/tmp/cvs-serv16581/lib/readline Modified Files: complete.c Log Message: Added test target to top level Makefile. Aligned code (especially in builtins) to closely resemble the GNU bash 1.14.7 source files. A lot more work needs to be done to clean the source up to make some sense out of this mess. I am confident we'll get there sooner or later :) Index: complete.c =================================================================== RCS file: /cvsroot/winbash/winbash/lib/readline/complete.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- complete.c 11 Mar 2002 14:32:16 -0000 1.5 +++ complete.c 20 Mar 2002 02:09:55 -0000 1.6 @@ -1172,23 +1172,30 @@ { register int c1, c2, si; - if (completion_case_fold) { - for (si = 0; (c1 = to_lower(match_list[i][si])) && (c2 = to_lower(match_list[i + 1][si]));si++) - if (c1 != c2) break; - } - else { - for (si = 0; (c1 = match_list[i][si]) && (c2 = match_list[i + 1][si]);si++) - if (c1 != c2) break; - } - - if (low > si) - low = si; - i++; + if (completion_case_fold) + { + for (si = 0; + (c1 = to_lower(match_list[i][si])) && + (c2 = to_lower(match_list[i + 1][si])); + si++) + if (c1 != c2) break; } - match_list[0] = xmalloc (low + 1); - strncpy (match_list[0], match_list[1], low); - match_list[0][low] = '\0'; - } + else + { + for (si = 0; + (c1 = match_list[i][si]) && + (c2 = match_list[i + 1][si]); + si++) + if (c1 != c2) break; + } + + if (low > si) low = si; + i++; + } + match_list[0] = xmalloc (low + 1); + strncpy (match_list[0], match_list[1], low); + match_list[0][low] = '\0'; + } } else /* There were no matches. */ { @@ -1287,18 +1294,10 @@ { /* Otherwise, if these match up to the length of filename, then it is a match. */ -// if (completion_case_fold){ - if ((to_lower(entry->d_name[0]) == to_lower(filename[0])) && - (((int)D_NAMLEN (entry)) >= filename_len) && - (strincmp (filename, entry->d_name, filename_len) == 0)) - break; -// } -// else { -// if ((entry->d_name[0] == filename[0]) && -// (((int)D_NAMLEN (entry)) >= filename_len) && -// (strncmp (filename, entry->d_name, filename_len) == 0)) -// break; -// } + if ((to_lower(entry->d_name[0]) == to_lower(filename[0])) && + (((int)D_NAMLEN (entry)) >= filename_len) && + (strincmp (filename, entry->d_name, filename_len) == 0)) + break; } } |
From: Enrico B. <enr...@us...> - 2002-03-18 18:59:53
|
Update of /cvsroot/winbash/winbash/tests In directory usw-pr-cvs1:/tmp/cvs-serv23457 Modified Files: Makefile Log Message: removed bogus reference to $TMP Index: Makefile =================================================================== RCS file: /cvsroot/winbash/winbash/tests/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile 18 Mar 2002 18:57:36 -0000 1.2 +++ Makefile 18 Mar 2002 18:59:47 -0000 1.3 @@ -29,7 +29,7 @@ # How to make a .obj file from a .def file. run_tests: recho.exe - TMP=$(TMP) `pwd`/../bash.exe run-all + `pwd`/../bash.exe run-all recho.exe: ../support/recho.c $(CC) $(CPPFLAGS) $(CPPDEFS) $(CFLAGS) -o $@ $< |
From: Enrico B. <enr...@us...> - 2002-03-18 18:57:42
|
Update of /cvsroot/winbash/winbash/tests/misc In directory usw-pr-cvs1:/tmp/cvs-serv22210/misc Modified Files: run.r1.sh run.r2.sh run.r3.sh Log Message: Added run_test target. Corrected references to bash to use the $BASH env var. Index: run.r1.sh =================================================================== RCS file: /cvsroot/winbash/winbash/tests/misc/run.r1.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- run.r1.sh 11 Mar 2002 14:32:16 -0000 1.1 +++ run.r1.sh 18 Mar 2002 18:57:36 -0000 1.2 @@ -1 +1 @@ -../../bash redir.t1.sh +$BASH redir.t1.sh Index: run.r2.sh =================================================================== RCS file: /cvsroot/winbash/winbash/tests/misc/run.r2.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- run.r2.sh 11 Mar 2002 14:32:16 -0000 1.1 +++ run.r2.sh 18 Mar 2002 18:57:36 -0000 1.2 @@ -1 +1 @@ -../../bash ./redir.t2.sh < /etc/passwd +$BASH ./redir.t2.sh < /etc/passwd Index: run.r3.sh =================================================================== RCS file: /cvsroot/winbash/winbash/tests/misc/run.r3.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- run.r3.sh 11 Mar 2002 14:32:16 -0000 1.1 +++ run.r3.sh 18 Mar 2002 18:57:36 -0000 1.2 @@ -1,3 +1,3 @@ -# -# the `after exec in ...' should not be echoed -../../bash < redir.t3.sh +# +# the `after exec in ...' should not be echoed +$BASH < redir.t3.sh |
From: Enrico B. <enr...@us...> - 2002-03-18 18:57:42
|
Update of /cvsroot/winbash/winbash/tests In directory usw-pr-cvs1:/tmp/cvs-serv22210 Modified Files: Makefile run-all Log Message: Added run_test target. Corrected references to bash to use the $BASH env var. Index: Makefile =================================================================== RCS file: /cvsroot/winbash/winbash/tests/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile 16 Mar 2002 02:00:25 -0000 1.1 +++ Makefile 18 Mar 2002 18:57:36 -0000 1.2 @@ -28,6 +28,8 @@ .SUFFIXES: .c .obj # How to make a .obj file from a .def file. +run_tests: recho.exe + TMP=$(TMP) `pwd`/../bash.exe run-all recho.exe: ../support/recho.c $(CC) $(CPPFLAGS) $(CPPDEFS) $(CFLAGS) -o $@ $< Index: run-all =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-all,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- run-all 11 Mar 2002 01:47:05 -0000 1.3 +++ run-all 18 Mar 2002 18:57:36 -0000 1.4 @@ -10,7 +10,7 @@ case $x in $0) ;; *.orig|*~) ;; - *) echo $x ; sh $x ;; + *) echo $x ; $BASH $x ;; esac done |
From: Enrico B. <enr...@us...> - 2002-03-16 02:47:02
|
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv29403 Modified Files: nt_execute_cmd.c Log Message: Removed TME10 reference Index: nt_execute_cmd.c =================================================================== RCS file: /cvsroot/winbash/winbash/nt_execute_cmd.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- nt_execute_cmd.c 14 Mar 2002 22:09:54 -0000 1.3 +++ nt_execute_cmd.c 16 Mar 2002 02:46:59 -0000 1.4 @@ -256,7 +256,7 @@ /* turn this on if we want to put stuff in the event log too */ #ifdef USE_EVENT_LOG - hEventSource = RegisterEventSource(NULL, "GNU Bash (TME10 version)"); + hEventSource = RegisterEventSource(NULL, "GNU Bash"); lpszStrings[0] = errmsg; if (hEventSource != NULL) { |
From: Enrico B. <enr...@us...> - 2002-03-16 02:36:10
|
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv27810 Modified Files: Makefile Log Message: defined OPENDIR_NOT_ROBUST to make globbing work as expected on win32 Index: Makefile =================================================================== RCS file: /cvsroot/winbash/winbash/Makefile,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Makefile 14 Mar 2002 00:29:47 -0000 1.8 +++ Makefile 16 Mar 2002 02:36:07 -0000 1.9 @@ -17,7 +17,7 @@ DEFS += -DHAVE_STRERROR -DHAVE_DIRENT -DHAVE_STRING_H -DHAVE_VARARGS_H DEFS += -DHAVE_STRCHR -DSHELL DEFS += -DMSDOS -DHAVE_ALLOCA -DHAVE_ALLOCA_H -DEFS += -D__NT_VC__ -DCONIO +DEFS += -D__NT_VC__ -DCONIO -DOPENDIR_NOT_ROBUST CPPFLAGS += -I. CPPFLAGS += -I./lib CPPFLAGS += -I./dum_inc |
From: Enrico B. <enr...@us...> - 2002-03-16 02:00:28
|
Update of /cvsroot/winbash/winbash/tests In directory usw-pr-cvs1:/tmp/cvs-serv21445 Added Files: Makefile Log Message: Added makefile to compile recho --- NEW FILE: Makefile --- # # This Makefile for building builtins.lib is in -*- text -*- for Emacs. # # CC=cl.exe -nologo MAKE_LIB_COMMAND=lib.exe -nologo $^ -out:$@ SHELL = /bin/sh RM = rm -f CP = cp CPPDEFS = -DWIN32 -D_WINDOWS -D__NT_VC__ -DHAVE_STRING_H -D_STDLIB_H_ CPPFLAGS += -I. CPPFLAGS += -I../lib CPPFLAGS += -I../dum_inc CPPFLAGS += -I../ CPPFLAGS += $(CPPDEFS) CFLAGS = -MT ifdef RELEASE CFLAGS += -O2 else CFLAGS += -Od -Zi -Fdbuiltins.pdb CPPFLAGS += -D_DEBUG endif .SUFFIXES: .SUFFIXES: .c .obj # How to make a .obj file from a .def file. recho.exe: ../support/recho.c $(CC) $(CPPFLAGS) $(CPPDEFS) $(CFLAGS) -o $@ $< clean: $(RM) recho.obj recho.exe recho.ilk recho.pdb |
From: Enrico B. <enr...@us...> - 2002-03-16 01:58:19
|
Update of /cvsroot/winbash/winbash/tests In directory usw-pr-cvs1:/tmp/cvs-serv20903 Modified Files: glob-test glob.right input-line.sh run-dollars run-exp-tests run-glob-test run-ifs-tests run-input-test run-minus-e run-new-exp run-precedence run-set-e-test run-strip run-varenv varenv.sh Log Message: fixed tests to work under win32 platforms Index: glob-test =================================================================== RCS file: /cvsroot/winbash/winbash/tests/glob-test,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- glob-test 11 Mar 2002 01:47:05 -0000 1.4 +++ glob-test 16 Mar 2002 01:58:15 -0000 1.5 @@ -6,7 +6,7 @@ echo expect "$@" } -TESTDIR=/tmp/glob-test +TESTDIR=$TEMP/glob-test rm -rf $TESTDIR mkdir $TESTDIR builtin cd $TESTDIR @@ -82,15 +82,16 @@ recho [^a-c]* # Make sure that filenames with embedded globbing characters are handled -# properly -mkdir a\*b -> a\*b/ooo +# properly. This doesn not apply to windows, since globbing chars are not +# allowed in filenames +#mkdir a\*b +#touch a\*b/ooo -expect '<a*b/ooo>' -recho a\*b/* +#expect '<a*b/ooo>' +#recho a\*b/* -expect '<a*b/ooo>' -recho a\*?/* +#expect '<a*b/ooo>' +#recho a\*?/* expect '<no match>' cmd='echo !7' Index: glob.right =================================================================== RCS file: /cvsroot/winbash/winbash/tests/glob.right,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- glob.right 9 Mar 2002 04:43:16 -0000 1.2 +++ glob.right 16 Mar 2002 01:58:16 -0000 1.3 @@ -46,8 +46,6 @@ argv[1] = <d> argv[2] = <dd> argv[3] = <de> -argv[1] = <a*b/ooo> -argv[1] = <a*b/ooo> no match not there argv[1] = <abc> Index: input-line.sh =================================================================== RCS file: /cvsroot/winbash/winbash/tests/input-line.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- input-line.sh 9 Mar 2002 04:43:16 -0000 1.2 +++ input-line.sh 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,4 +1,5 @@ echo before calling input-line.sub -../bash ./input-line.sub +$BASH ./input-line.sub << EOF this line for input-line.sub +EOF echo finished with input-line.sub Index: run-dollars =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-dollars,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- run-dollars 9 Mar 2002 04:43:17 -0000 1.2 +++ run-dollars 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,3 +1,3 @@ -../bash ./dollar-star.sh a b > x 2>&1 -../bash ./dollar-at.sh a b >>x 2>&1 +$BASH ./dollar-star.sh a b > x 2>&1 +$BASH ./dollar-at.sh a b >>x 2>&1 diff x dollar.right && rm -f x Index: run-exp-tests =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-exp-tests,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- run-exp-tests 9 Mar 2002 04:43:17 -0000 1.2 +++ run-exp-tests 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,2 +1,2 @@ -../bash ./exp-tests | grep -v '^expect' > xx +$BASH ./exp-tests | grep -v '^expect' > xx diff xx exp.right && rm -f xx Index: run-glob-test =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-glob-test,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- run-glob-test 9 Mar 2002 04:43:17 -0000 1.2 +++ run-glob-test 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,4 +1,4 @@ PATH=$PATH:`pwd` export PATH -../bash ./glob-test | grep -v '^expect' > xx +$BASH ./glob-test | grep -v '^expect' > xx diff xx glob.right && rm -f xx Index: run-ifs-tests =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-ifs-tests,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- run-ifs-tests 9 Mar 2002 04:43:17 -0000 1.2 +++ run-ifs-tests 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,13 +1,13 @@ # # show that IFS is only applied to the result of expansions # -../bash ifs-test-1.sh > xx +$BASH ifs-test-1.sh > xx diff xx ./ifs.1.right -../bash ifs-test-2.sh > xx +$BASH ifs-test-2.sh > xx diff xx ./ifs.2.right -../bash ifs-test-3.sh > xx +$BASH ifs-test-3.sh > xx diff xx ./ifs.3.right rm -f xx Index: run-input-test =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-input-test,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- run-input-test 9 Mar 2002 04:43:17 -0000 1.2 +++ run-input-test 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,2 +1,2 @@ -../bash < ./input-line.sh > xx +$BASH < ./input-line.sh > xx diff xx input.right && rm -f xx Index: run-minus-e =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-minus-e,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- run-minus-e 9 Mar 2002 04:43:17 -0000 1.2 +++ run-minus-e 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,2 +1,2 @@ -../bash ./minus-e > xx +$BASH ./minus-e > xx diff xx minus-e.right && rm -f xx Index: run-new-exp =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-new-exp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- run-new-exp 9 Mar 2002 04:43:17 -0000 1.2 +++ run-new-exp 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,2 +1,2 @@ -../bash ./new-exp.tests 2>&1 | grep -v '^expect' > xx +$BASH ./new-exp.tests 2>&1 | grep -v '^expect' > xx diff xx new-exp.right && rm -f xx Index: run-precedence =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-precedence,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- run-precedence 9 Mar 2002 04:43:17 -0000 1.2 +++ run-precedence 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,2 +1,2 @@ -../bash ./precedence > xx +$BASH ./precedence > xx diff xx prec.right && rm -f xx Index: run-set-e-test =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-set-e-test,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- run-set-e-test 9 Mar 2002 04:43:17 -0000 1.2 +++ run-set-e-test 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,2 +1,2 @@ -../bash ./set-e-test > xx +$BASH ./set-e-test > xx diff xx set-e.right && rm -f xx Index: run-strip =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-strip,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- run-strip 9 Mar 2002 04:43:17 -0000 1.2 +++ run-strip 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,2 +1,2 @@ -../bash ./strip.tests > xx +$BASH ./strip.tests > xx diff xx strip.right && rm -f xx Index: run-varenv =================================================================== RCS file: /cvsroot/winbash/winbash/tests/run-varenv,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- run-varenv 9 Mar 2002 04:43:17 -0000 1.2 +++ run-varenv 16 Mar 2002 01:58:16 -0000 1.3 @@ -1,2 +1,2 @@ -../bash ./varenv.sh | grep -v '^expect' > xx +$BASH ./varenv.sh | grep -v '^expect' > xx diff xx varenv.right && rm -f xx Index: varenv.sh =================================================================== RCS file: /cvsroot/winbash/winbash/tests/varenv.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- varenv.sh 9 Mar 2002 04:43:17 -0000 1.2 +++ varenv.sh 16 Mar 2002 01:58:16 -0000 1.3 @@ -45,7 +45,7 @@ echo $HOME expect $HOME -HOME=/a/b/c /bin/echo $HOME +HOME=/a/b/c echo $HOME expect $HOME echo $HOME @@ -59,7 +59,7 @@ # This should echo $HOME 9, NOT /a/b/c 9 expect "$HOME" -HOME=/a/b/c /bin/echo $HOME c=9 +HOME=/a/b/c echo $HOME c=9 expect "$HOME 7" echo $HOME $c |
From: Enrico B. <enr...@us...> - 2002-03-15 17:14:58
|
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv26055 Modified Files: nojobs.c nt_io.c nt_types.h Log Message: Made files compile when JF_DEBUG is set Index: nojobs.c =================================================================== RCS file: /cvsroot/winbash/winbash/nojobs.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- nojobs.c 11 Mar 2002 14:32:12 -0000 1.4 +++ nojobs.c 15 Mar 2002 17:14:55 -0000 1.5 @@ -639,13 +639,13 @@ thr_args->var = var; /* how to copy this? */ #if defined(JF_DEBUG) - fprintf(thr_main->stdfile[2], "nt_make_child, pipe_in = %d\n", pipe_in); - fflush(thr_main->stdfile[2]); + fprintf(main_thread_stdfile[2], "nt_make_child, pipe_in = %d\n", pipe_in); + fflush(main_thread_stdfile[2]); #endif thr_args->pipe_in = (pipe_in == NO_PIPE ? NO_PIPE : dup (pipe_in)); #if defined(JF_DEBUG) - fprintf(thr_main->stdfile[2], "nt_make_child, pipe_out = %d\n", pipe_out); - fflush(thr_main->stdfile[2]); + fprintf(main_thread_stdfile[2], "nt_make_child, pipe_out = %d\n", pipe_out); + fflush(main_thread_stdfile[2]); #endif thr_args->pipe_out = (pipe_out == NO_PIPE ? NO_PIPE : dup (pipe_out)); thr_args->asynchronous = async_p; @@ -662,8 +662,8 @@ { int fd = dup (fds_to_close->bitmap[i]); #if defined(JF_DEBUG) - fprintf(thr_main->stdfile[2], "nt_make_child, fd to close = %d\n", fd); - fflush(thr_main->stdfile[2]); + fprintf(main_thread_stdfile[2], "nt_make_child, fd to close = %d\n", fd); + fflush(main_thread_stdfile[2]); #endif if (fd >= new_bitmap_size) @@ -691,8 +691,8 @@ if (fildes) { #if defined(JF_DEBUG) - fprintf(thr_main->stdfile[2], "nt_make_child, fildes[0] = %d\n", fildes[0]); - fflush(thr_main->stdfile[2]); + fprintf(main_thread_stdfile[2], "nt_make_child, fildes[0] = %d\n", fildes[0]); + fflush(main_thread_stdfile[2]); #endif if (fildes[0]) { @@ -700,8 +700,8 @@ SET_CLOSE_ON_EXEC (fildes[0]); } #if defined(JF_DEBUG) - fprintf(thr_main->stdfile[2], "nt_make_child, fildes[1] = %d\n", fildes[1]); - fflush(thr_main->stdfile[2]); + fprintf(main_thread_stdfile[2], "nt_make_child, fildes[1] = %d\n", fildes[1]); + fflush(main_thread_stdfile[2]); #endif if (fildes[1]) { Index: nt_io.c =================================================================== RCS file: /cvsroot/winbash/winbash/nt_io.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- nt_io.c 12 Mar 2002 11:54:15 -0000 1.3 +++ nt_io.c 15 Mar 2002 17:14:55 -0000 1.4 @@ -73,8 +73,8 @@ { int ret = _close (fd); #if defined (JF_DEBUG) - fprintf (thr_main->stdfile[2], "close (%d)\n", fd); - fflush (thr_main->stdfile[2]); + fprintf (main_thread_stdfile[2], "%s:close (%d)\n", the_printed_command,fd); + fflush (main_thread_stdfile[2]); #endif return ret; } @@ -84,8 +84,8 @@ { int new_fd = _dup (fd); #if defined (JF_DEBUG) - fprintf (thr_main->stdfile[2], "dup (%d) = %d\n", fd, new_fd); - fflush (thr_main->stdfile[2]); + fprintf (main_thread_stdfile[2], "%s:dup (%d) = %d\n", the_printed_command, fd, new_fd); + fflush (main_thread_stdfile[2]); #endif return new_fd; } @@ -95,8 +95,8 @@ { int ret = _dup2 (fd1, fd2); #if defined (JF_DEBUG) - fprintf (thr_main->stdfile[2], "dup2 (%d, %d)\n", fd1, fd2); - fflush (thr_main->stdfile[2]); + fprintf (main_thread_stdfile[2], "%s:dup2 (%d, %d)\n", the_printed_command, fd1, fd2); + fflush (main_thread_stdfile[2]); #endif return ret; } @@ -135,8 +135,8 @@ */ int ret = _pipe (filedes, 4096, mode); #if defined (JF_DEBUG) - fprintf (thr_main->stdfile[2], "pipe (%d, %d)\n", filedes[0], filedes[1]); - fflush (thr_main->stdfile[2]); + fprintf (main_thread_stdfile[2], "%s:pipe (%d, %d)\n", the_printed_command, filedes[0], filedes[1]); + fflush (main_thread_stdfile[2]); #endif return ret; } @@ -215,8 +215,8 @@ _lseek (fd, 0L, SEEK_END); #endif #if defined (JF_DEBUG) - fprintf (thr_main->stdfile[2], "open (%s) = %d\n", path, fd); - fflush (thr_main->stdfile[2]); + fprintf (main_thread_stdfile[2], "%s:open (%s) = %d\n", the_printed_command, path, fd); + fflush (main_thread_stdfile[2]); #endif return fd; } @@ -237,8 +237,8 @@ _lseek (fd, 0L, SEEK_END); #endif #if defined (JF_DEBUG) - fprintf (thr_main->stdfile[2], "open3 (%s) = %d\n", path, fd); - fflush (thr_main->stdfile[2]); + fprintf (main_thread_stdfile[2], "%s:open3 (%s) = %d\n", the_printed_command,path, fd); + fflush (main_thread_stdfile[2]); #endif return fd; } @@ -247,8 +247,8 @@ FCLOSE (FILE *fp) { #if defined (JF_DEBUG) - fprintf (thr_main->stdfile[2], "fclose (%d)\n", fp->_file); - fflush (thr_main->stdfile[2]); + fprintf (main_thread_stdfile[2], "%s:fclose (%d)\n", the_printed_command, fp->_file); + fflush (main_thread_stdfile[2]); #endif fclose (fp); } @@ -265,8 +265,8 @@ #endif /* !BINARY_IO */ fp = _fsopen (strcmp (path, "/dev/null") ? path : "NUL", buf, _SH_DENYNO); #if defined (JF_DEBUG) - fprintf (thr_main->stdfile[2], "fopen (%s) = %d\n", path, fp->_file); - fflush (thr_main->stdfile[2]); + fprintf (main_thread_stdfile[2], "%s:fopen (%s) = %d\n", the_printed_command, path, fp->_file); + fflush (main_thread_stdfile[2]); #endif return fp; } Index: nt_types.h =================================================================== RCS file: /cvsroot/winbash/winbash/nt_types.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- nt_types.h 10 Mar 2002 21:45:13 -0000 1.2 +++ nt_types.h 15 Mar 2002 17:14:55 -0000 1.3 @@ -28,7 +28,8 @@ #include "general.h" /* define it here because the windows include files bring in too much garbage */ -/* #include <windef.h> */ +//#include <windows.h> +//#include <wincon.h> typedef long DWORD; typedef void* HANDLE; #include "command.h" @@ -97,6 +98,7 @@ this, in theory, will make it easier to merge changes from the bash mainline into the windows port. */ #define stdfile thr_me->stdfile_ +#define main_thread_stdfile thr_main->stdfile_ #define last_made_pid thr_me->last_made_pid_ #define last_asynchronous_pid thr_me->last_asynchronous_pid_ |
From: Enrico B. <enr...@us...> - 2002-03-14 22:09:59
|
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv6744 Modified Files: nt_execute_cmd.c Log Message: Applied Kevin's bug fix to properly deal with directories when trying to execute a file Index: nt_execute_cmd.c =================================================================== RCS file: /cvsroot/winbash/winbash/nt_execute_cmd.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- nt_execute_cmd.c 10 Mar 2002 21:45:13 -0000 1.2 +++ nt_execute_cmd.c 14 Mar 2002 22:09:54 -0000 1.3 @@ -1092,13 +1092,24 @@ if ((orig_status & reg_exe) == reg_exe) return orig_status; - /* If the file is a directory, then it is not "executable" in the - sense of the shell. */ - if(stat (*name, &finfo) >= 0 && S_ISDIR (finfo.st_mode)) - return orig_status; + /* look for 'name.{exe,com,sh,pl,bat,...}' first before + * checking to see if 'name' is a directory. otherwise, if + * the actual executable and a directory of the same name + * exist in the same directory, the actual exe will not be + * resolved. for example, suppose the following structure: + * c:/bin/ + * CVS/ + * cvs.exe + * and suppose PATH="c:/bin". if the command 'cvs' is run, + * the CVS directory would be found first, and the command + * would fail. unfortunately, this is a little slower, but + * correctness is more important than speed. + * + * kevin seguin, 03.03.2002 + */ while (try = try_names (nm)) - { + { int status = file_status (try); nm = 0; if ((status & reg_exe) == reg_exe) @@ -1109,7 +1120,11 @@ *name = ret; return status; } - } + } + /* If the file is a directory, then it is not "executable" in the + sense of the shell. */ + if(stat (*name, &finfo) >= 0 && S_ISDIR (finfo.st_mode)) + return orig_status; return orig_status; } |
From: Enrico B. <enr...@us...> - 2002-03-14 22:06:04
|
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv5488 Modified Files: subst.c Log Message: Removed duplicate free call. it was caused involuntarily by the patch process Index: subst.c =================================================================== RCS file: /cvsroot/winbash/winbash/subst.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- subst.c 11 Mar 2002 14:32:12 -0000 1.8 +++ subst.c 14 Mar 2002 22:05:58 -0000 1.9 @@ -2218,9 +2218,6 @@ error_exit: FREE (istring); -#if defined (__NT_VC__) - FREE (save_wd); -#endif close (fildes[0]); close (fildes[1]); return ((char *)NULL); |
From: kevin s. <xk...@us...> - 2002-03-14 02:30:42
|
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv26709 Modified Files: .build version.h Log Message: update build version Index: .build =================================================================== RCS file: /cvsroot/winbash/winbash/.build,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- .build 11 Mar 2002 14:32:11 -0000 1.10 +++ .build 14 Mar 2002 02:30:39 -0000 1.11 @@ -1 +1 @@ -5 +9 Index: version.h =================================================================== RCS file: /cvsroot/winbash/winbash/version.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- version.h 11 Mar 2002 14:32:13 -0000 1.10 +++ version.h 14 Mar 2002 02:30:39 -0000 1.11 @@ -8,9 +8,9 @@ #define PATCHLEVEL 7 /* The last built version of this shell. */ -#define BUILDVERSION 5 +#define BUILDVERSION 9 /* A version string for use by sccs and the what command. */ -#define SCCSVERSION "@(#)Bash version 1.14.7(5) GNU" +#define SCCSVERSION "@(#)Bash version 1.14.7(9) GNU" |
From: kevin s. <xk...@us...> - 2002-03-14 00:52:41
|
Update of /cvsroot/winbash/winbash/builtins In directory usw-pr-cvs1:/tmp/cvs-serv8163 Modified Files: exit.def return.def source.def Log Message: use SETJMP/LONGJMP rather than setjmp/longjmp Index: exit.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/exit.def,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- exit.def 11 Mar 2002 14:32:13 -0000 1.5 +++ exit.def 14 Mar 2002 00:52:38 -0000 1.6 @@ -123,5 +123,5 @@ last_command_exit_value = exit_value; /* Exit the program. */ - longjmp (top_level, EXITPROG); + LONGJMP (top_level, EXITPROG); } Index: return.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/return.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- return.def 10 Mar 2002 21:45:14 -0000 1.3 +++ return.def 14 Mar 2002 00:52:38 -0000 1.4 @@ -48,7 +48,7 @@ return_catch_value = last_command_exit_value; if (return_catch_flag) - longjmp (return_catch, 1); + LONGJMP (return_catch, 1); else { builtin_error ("Can only `return' from a function"); Index: source.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/source.def,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- source.def 11 Mar 2002 14:32:14 -0000 1.5 +++ source.def 14 Mar 2002 00:52:38 -0000 1.6 @@ -130,7 +130,7 @@ if (posixly_correct && !interactive_shell) { last_command_exit_value = 1; - longjmp (top_level, EXITPROG); + LONGJMP (top_level, EXITPROG); } return (EXECUTION_FAILURE); @@ -167,7 +167,7 @@ set_dollar_vars_unchanged (); return_catch_flag++; - return_val = setjmp (return_catch); + return_val = SETJMP (return_catch); if (return_val) parse_and_execute_cleanup (); |
From: kevin s. <xk...@us...> - 2002-03-14 00:29:50
|
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv4373 Modified Files: Makefile Log Message: rebuild builtins.lib from top-level dir when builtin sources (includes .def files) change Index: Makefile =================================================================== RCS file: /cvsroot/winbash/winbash/Makefile,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Makefile 11 Mar 2002 00:22:40 -0000 1.7 +++ Makefile 14 Mar 2002 00:29:47 -0000 1.8 @@ -185,7 +185,7 @@ sh.exe : bash.exe cp $^ $@ -builtins/builtins.lib: $(BUILTIN_DEFS) +builtins/builtins.lib: $(BUILTIN_SRCS) cd builtins ; $(MAKE) newversion.exe: newversion.c |
From: Enrico B. <enr...@us...> - 2002-03-12 11:54:19
|
Update of /cvsroot/winbash/winbash/lib/readline In directory usw-pr-cvs1:/tmp/cvs-serv9343/lib/readline Modified Files: readline.c rltty.c Log Message: need to use running_in_emacs to identify whether shell should echo the command back or not Index: readline.c =================================================================== RCS file: /cvsroot/winbash/winbash/lib/readline/readline.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- readline.c 11 Mar 2002 14:32:16 -0000 1.4 +++ readline.c 12 Mar 2002 11:54:15 -0000 1.5 @@ -158,7 +158,7 @@ static int rl_initialized = 0; /* If non-zero, this program is running in an EMACS buffer. */ -static int running_in_emacs = 0; +int running_in_emacs = 0; /* The current offset in the current input line. */ int rl_point; Index: rltty.c =================================================================== RCS file: /cvsroot/winbash/winbash/lib/readline/rltty.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- rltty.c 9 Mar 2002 16:05:44 -0000 1.2 +++ rltty.c 12 Mar 2002 11:54:15 -0000 1.3 @@ -260,6 +260,7 @@ #if defined (__NT_VC__) #include "../../nt_types.h" extern struct thread_env *thr_main; +extern int running_in_emacs; #endif set_tty_settings (tty, tiop) @@ -267,12 +268,12 @@ TIOTYPE *tiop; { #ifdef __NT_VC__ - readline_echoing_p = 1; - return 0; - if (tty >= MAX_TTY) return 0 ; - if (!dup_terminal[tty]) return 0 ; - dup2(dup_terminal[tty],tty); - return 0 ; + readline_echoing_p = running_in_emacs ? 0 : 1; + return 0; + if (tty >= MAX_TTY) return 0 ; + if (!dup_terminal[tty]) return 0 ; + dup2(dup_terminal[tty],tty); + return 0 ; #else if (tiop->flags & SGTTY_SET) { |
From: Enrico B. <enr...@us...> - 2002-03-12 11:54:19
|
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv9343 Modified Files: nt_io.c Log Message: need to use running_in_emacs to identify whether shell should echo the command back or not Index: nt_io.c =================================================================== RCS file: /cvsroot/winbash/winbash/nt_io.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- nt_io.c 10 Mar 2002 21:45:13 -0000 1.2 +++ nt_io.c 12 Mar 2002 11:54:15 -0000 1.3 @@ -144,7 +144,7 @@ int nt_read (int fd, char *buf, size_t count) { - //extern int running_in_emacs; + extern int running_in_emacs; int ret; int save_count = count; #if 0 @@ -152,7 +152,7 @@ fflush (stderr); #endif - if (interactive_shell) + if (interactive_shell && !running_in_emacs) { int i; for (i = 0; i < count; buf[i++] = getch ()) |
From: Enrico B. <enr...@us...> - 2002-03-11 14:32:47
|
Update of /cvsroot/winbash/winbash/builtins In directory usw-pr-cvs1:/tmp/cvs-serv6262/builtins Modified Files: bind.def common.c exec.def exit.def getopt.c getopt.h getopts.def mkbuiltins.c read.def reserved.def set.def source.def trap.def ulimit.def Log Message: Major realignment to 1.14.7 Index: bind.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/bind.def,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- bind.def 10 Mar 2002 21:45:14 -0000 1.5 +++ bind.def 11 Mar 2002 14:32:13 -0000 1.6 @@ -166,7 +166,7 @@ { if (rl_read_init_file (initfile) != 0) { - builtin_error ("cannot read %s: %s", initfile, strerror (errno)); + builtin_error ("cannot read %s: %s", initfile, strerror (errno)); BIND_RETURN (EXECUTION_FAILURE); } } @@ -181,12 +181,9 @@ list = list->next; } + bind_exit: if (saved_keymap) rl_set_keymap (saved_keymap); - - bind_exit: - if (saved_keymap) - rl_set_keymap (saved_keymap); rl_outstream = old_rl_outstream; return (return_code); Index: common.c =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/common.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- common.c 10 Mar 2002 21:45:14 -0000 1.4 +++ common.c 11 Mar 2002 14:32:13 -0000 1.5 @@ -45,11 +45,11 @@ # include "../bashhist.h" #endif -extern int no_symbolic_links; +extern int no_symbolic_links;// interactive, interactive_shell; extern int indirection_level, startup_state; +//extern int last_command_exit_value; extern int hashing_disabled; -/* extern int last_command_exit_value; - extern int variable_context; */ +//extern int variable_context; extern char *this_command_name, *shell_name; extern COMMAND *global_command; extern HASH_TABLE *hashed_filenames; @@ -580,7 +580,7 @@ indirection_level++; if (interact != -1) interactive = interact; - + #if defined (HISTORY) /* We don't remember text read by the shell this way on the history list, and we don't use !$ in shell scripts. */ @@ -615,15 +615,15 @@ case FORCE_EOF: case EXITPROG: run_unwind_frame ("pe_dispose"); - /* Remember to call LONGJMP (top_level) after the old + /* Remember to call longjmp (top_level) after the old value for it is restored. */ jump_to_top_level = 1; goto out; case DISCARD: - dispose_command (command); - run_unwind_frame ("pe_dispose"); - last_command_exit_value = 1; + dispose_command (command); + run_unwind_frame ("pe_dispose"); + last_command_exit_value = 1; continue; default: @@ -673,7 +673,6 @@ } out: - run_unwind_frame ("parse_and_execute_top"); Index: exec.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/exec.def,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- exec.def 10 Mar 2002 21:45:14 -0000 1.4 +++ exec.def 11 Mar 2002 14:32:13 -0000 1.5 @@ -129,7 +129,7 @@ #if defined (JOB_CONTROL) if (subshell_environment == 0) - end_job_control (); + end_job_control (); #endif /* JOB_CONTROL */ #if defined (__NT_VC__) @@ -153,8 +153,8 @@ free (command); if (subshell_environment || - (!interactive && !find_variable ("no_exit_on_failed_exec"))) - exit (exit_value); + (!interactive && !find_variable ("no_exit_on_failed_exec"))) + exit (exit_value); initialize_traps (); reinitialize_signals (); Index: exit.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/exit.def,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- exit.def 10 Mar 2002 21:45:14 -0000 1.4 +++ exit.def 11 Mar 2002 14:32:13 -0000 1.5 @@ -1,5 +1,5 @@ This file is exit.def, from which is created exit.c. -It implements the builtins "exit", and "logout" in Bash. +It implements the builtins "exit" and "logout" in Bash. Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc. Index: getopt.c =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/getopt.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- getopt.c 11 Mar 2002 04:50:29 -0000 1.4 +++ getopt.c 11 Mar 2002 14:32:13 -0000 1.5 @@ -15,19 +15,10 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ - -#include <config.h> - -#if defined (HAVE_UNISTD_H) -# ifdef _MINIX -# include <sys/types.h> -# endif -# include <unistd.h> -#endif + Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <stdio.h> -#include "memalloc.h" +#include "../memalloc.h" #include "../shell.h" #include "getopt.h" @@ -75,9 +66,6 @@ int sh_optopt = '?'; -/* Set to 1 when we see an illegal option; public so getopts can reset it. */ -int sh_badopt = 0; - /* Scan elements of ARGV (whose length is ARGC) for option characters given in OPTSTRING. @@ -114,11 +102,12 @@ char *const *argv; const char *optstring; { + int option_index; char c, *temp; sh_optarg = 0; - if (sh_optind >= argc || sh_optind < 0) /* XXX was sh_optind > argc */ + if (sh_optind > argc || sh_optind < 0) { sh_optind = argc; return (EOF); @@ -135,19 +124,11 @@ nextchar = (char *)NULL; } - /* Do the increment of `sh_optind' we deferred because the last option - was illegal. */ - if (sh_badopt && (nextchar == 0 || *nextchar == '\0')) - { - sh_badopt = 0; - sh_optind++; - nextchar = (char *)NULL; - } - if (nextchar == 0 || *nextchar == '\0') { - /* If we have done all the ARGV-elements, stop the scan. */ - if (sh_optind >= argc) + /* If we have done all the ARGV-elements, stop the scan + and back over any non-options that we skipped and permuted. */ + if (sh_optind == argc) return EOF; temp = argv[sh_optind]; @@ -177,11 +158,16 @@ c = *nextchar++; sh_charindex++; temp = strchr (optstring, c); + /* Increment `sh_optind' when we start to process its last character. */ + if (nextchar == 0 || *nextchar == '\0') + { + sh_optind++; + nextchar = (char *)NULL; + } + sh_optopt = c; - /* If the option is illegal, return an error, but defer updating sh_optind - until the next call so $OPTIND is correct. */ - if (sh_badopt = (temp == NULL || c == ':')) + if (temp == NULL || c == ':') { if (sh_opterr) BADOPT (c); @@ -189,13 +175,6 @@ return '?'; } - /* Increment `sh_optind' when we start to process its last character. */ - if (nextchar == 0 || *nextchar == '\0') - { - sh_optind++; - nextchar = (char *)NULL; - } - if (temp[1] == ':') { if (nextchar && *nextchar) @@ -212,7 +191,6 @@ NEEDARG (c); sh_optopt = c; - sh_optarg = ""; /* Needed by getopts. */ c = (optstring[0] == ':') ? ':' : '?'; } else @@ -232,19 +210,6 @@ nextchar = argv[sh_curopt] + sh_charindex; } -#if 0 -void -sh_getopt_debug_restore_state (argv) - char **argv; -{ - if (nextchar && nextchar != argv[sh_curopt] + sh_charindex) - { - itrace("sh_getopt_debug_restore_state: resetting nextchar"); - nextchar = argv[sh_curopt] + sh_charindex; - } -} -#endif - #ifdef TEST /* Compile with -DTEST to make an executable for use in testing Index: getopt.h =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/getopt.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- getopt.h 11 Mar 2002 01:47:04 -0000 1.3 +++ getopt.h 11 Mar 2002 14:32:14 -0000 1.4 @@ -54,77 +54,4 @@ extern int sh_getopt (); extern void sh_getopt_restore_state (); -/* Describe the long-named options requested by the application. - The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector - of `struct option' terminated by an element containing a name which is - zero. - - The field `has_arg' is: - no_argument (or 0) if the option does not take an argument, - required_argument (or 1) if the option requires an argument, - optional_argument (or 2) if the option takes an optional argument. - - If the field `flag' is not NULL, it points to a variable that is set - to the value given in the field `val' when the option is found, but - left unchanged if the option is not found. - - To have a long-named option do something other than set an `int' to - a compiled-in constant, such as set a value from `optarg', set the - option's `flag' field to zero and its `val' field to a nonzero - value (the equivalent single-letter option character, if there is - one). For long options that have a zero `flag' field, `getopt' - returns the contents of the `val' field. */ - -struct option -{ -#if __STDC__ - const char *name; -#else - char *name; -#endif - /* has_arg can't be an enum because some compilers complain about - type mismatches in all the code that assumes it is an int. */ - int has_arg; - int *flag; - int val; -}; - -/* Names for the values of the `has_arg' field of `struct option'. */ - -#define no_argument 0 -#define required_argument 1 -#define optional_argument 2 - -#if __STDC__ -#if defined(__GNU_LIBRARY__) -/* Many other libraries have conflicting prototypes for getopt, with - differences in the consts, in stdlib.h. To avoid compilation - errors, only prototype getopt for the GNU C library. */ -extern int getopt (int argc, char *const *argv, const char *shortopts); -#else /* not __GNU_LIBRARY__ */ -extern int getopt (); -#endif /* not __GNU_LIBRARY__ */ -extern int getopt_long (int argc, char *const *argv, const char *shortopts, - const struct option *longopts, int *longind); -extern int getopt_long_only (int argc, char *const *argv, - const char *shortopts, - const struct option *longopts, int *longind); - -/* Internal only. Users should not call this directly. */ -extern int _getopt_internal (int argc, char *const *argv, - const char *shortopts, - const struct option *longopts, int *longind, - int long_only); -#else /* not __STDC__ */ -extern int getopt (); -extern int getopt_long (); -extern int getopt_long_only (); - -extern int _getopt_internal (); -#endif /* not __STDC__ */ - -#ifdef __cplusplus -} -#endif - #endif /* _GETOPT_H */ Index: getopts.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/getopts.def,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- getopts.def 11 Mar 2002 04:50:29 -0000 1.5 +++ getopts.def 11 Mar 2002 14:32:14 -0000 1.6 @@ -75,13 +75,6 @@ #define G_ILLEGAL_OPT (-2) #define G_ARG_MISSING (-3) -/* getopt.c is not compiled if __GNU_LIBRARY__ is defined, so this - function will come up as undefined. More's the pity; the default - behavior of the GNU getopt() is not Posix.2 compliant. */ -#if defined (__GNU_LIBRARY__) || defined(__NT_VC__) -# define getopt_set_posix_option_order(x) -#endif - extern char *this_command_name; extern WORD_LIST *rest_of_args; @@ -156,6 +149,7 @@ if (argc > 1) { + sh_getopt_restore_state (argv); t = argv[0]; argv[0] = dollar_vars[0]; ret = sh_getopt (argc, argv, optstr); @@ -285,30 +279,23 @@ register int i; char **av; int ac, ret; - WORD_LIST *t = list; - static int order_set = 0; + WORD_LIST *t; - if (!list) + if (list == 0) return EXECUTION_FAILURE; - for (ac = 0; t; t = t->next, ac++); + for (t = list, ac = 0; t; t = t->next, ac++); ac++; av = (char **)xmalloc ((1 + ac) * sizeof (char *)); av[ac] = (char *) NULL; - av[0] = savestring (this_command_name); + av[0] = this_command_name; for (t = list, i = 1; t; t = t->next, i++) - av[i] = savestring (t->word->word); - - if (order_set == 0) - { - getopt_set_posix_option_order (1); - order_set++; - } + av[i] = t->word->word; ret = dogetopts (ac, av); - free_array (av); + free ((char *)av); return (ret); } #endif /* GETOPTS_BUILTIN */ Index: mkbuiltins.c =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/mkbuiltins.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mkbuiltins.c 9 Mar 2002 04:20:36 -0000 1.2 +++ mkbuiltins.c 11 Mar 2002 14:32:14 -0000 1.3 @@ -25,8 +25,7 @@ #include <sys/types.h> #include <sys/file.h> #include <sys/stat.h> -#include "posixstat.h" -#include "filecntl.h" +#include "../filecntl.h" #if defined (HAVE_UNISTD_H) # include <unistd.h> @@ -220,9 +219,8 @@ register char *arg; arg = argv[arg_index++]; - - extract_info (arg, structfile, externfile); + extract_info (arg, structfile, externfile); } /* Close the files. */ Index: read.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/read.def,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- read.def 11 Mar 2002 01:47:04 -0000 1.4 +++ read.def 11 Mar 2002 14:32:14 -0000 1.5 @@ -31,12 +31,11 @@ zero, unless end-of-file is encountered. If the -r option is given, this signifies `raw' input, and backslash processing is disabled. $END -#include <stdlib.h> + #include <stdio.h> #include "../shell.h" #include "nt_types.h" #include "common.h" -#include <errno.h> #define issep(c) (strchr (ifs_chars, (c)) != (char *)0) @@ -107,7 +106,7 @@ input_stream = fdopen (fildes, "r"); - if (!input_stream) + if (!input_stream) { close (fildes); return (EXECUTION_FAILURE); @@ -137,22 +136,22 @@ /* If the next character is to be accepted verbatim, a backslash newline pair still disappears from the input. */ if (pass_next) - { - if (c == '\n') - i--; /* back up over the CTLESC */ - else - input_string[i++] = c; - pass_next = 0; - continue; - } + { + if (c == '\n') + i--; /* back up over the CTLESC */ + else + input_string[i++] = c; + pass_next = 0; + continue; + } if (c == '\\' && !raw_mode) - { - pass_next++; - saw_escape++; - input_string[i++] = CTLESC; - continue; - } + { + pass_next++; + saw_escape++; + input_string[i++] = CTLESC; + continue; + } if (c == '\n') { @@ -189,13 +188,13 @@ if (!list) { if (saw_escape) - { - t = dequote_string (input_string); - var = bind_variable ("REPLY", t); - free (t); - } + { + t = dequote_string (input_string); + var = bind_variable ("REPLY", t); + free (t); + } else - var = bind_variable ("REPLY", input_string); + var = bind_variable ("REPLY", input_string); var->attributes &= ~att_invisible; free (input_string); } @@ -205,24 +204,24 @@ read and assigning them to variables. If $IFS is unset, we use the default value of " \t\n". */ orig_input_string = input_string; - - /* Remove IFS white space at the beginning of the input string. If - $IFS is null, no field splitting is performed. */ - for (t = input_string; *ifs_chars && spctabnl (*t) && issep (*t); t++) - ; - input_string = t; - - for (; list->next; list = list->next) + + /* Remove IFS white space at the beginning of the input string. If + $IFS is null, no field splitting is performed. */ + for (t = input_string; *ifs_chars && spctabnl (*t) && issep (*t); t++) + ; + input_string = t; + + for (; list->next; list = list->next) { char *e, *t1; varname = list->word->word; - if (legal_identifier (varname) == 0) - { - builtin_error ("%s: not a legal variable name", varname); - free (orig_input_string); - return (EXECUTION_FAILURE); - } + if (legal_identifier (varname) == 0) + { + builtin_error ("%s: not a legal variable name", varname); + free (orig_input_string); + return (EXECUTION_FAILURE); + } /* If there are more variables than words read from the input, the remaining variables are set to the empty string. */ @@ -231,17 +230,17 @@ /* This call updates INPUT_STRING. */ t = get_word_from_string (&input_string, ifs_chars, &e); if (t) - *e = '\0'; + *e = '\0'; /* Don't bother to remove the CTLESC unless we added one somewhere while reading the string. */ if (t && saw_escape) - { - t1 = dequote_string (t); - var = bind_variable (varname, t1); - free (t1); - } + { + t1 = dequote_string (t); + var = bind_variable (varname, t1); + free (t1); + } else - var = bind_variable (varname, t); + var = bind_variable (varname, t); } else { @@ -257,11 +256,11 @@ } if (legal_identifier (list->word->word) == 0) - { - builtin_error ("%s: not a legal variable name", list->word->word); - free (orig_input_string); - return (EXECUTION_FAILURE); - } + { + builtin_error ("%s: not a legal variable name", list->word->word); + free (orig_input_string); + return (EXECUTION_FAILURE); + } /* This has to be done this way rather than using string_list and list_string because Posix.2 says that the last variable gets the @@ -270,13 +269,13 @@ saw_escape); if (saw_escape) - { - t = dequote_string (input_string); - var = bind_variable (list->word->word, t); - free (t); - } + { + t = dequote_string (input_string); + var = bind_variable (list->word->word, t); + free (t); + } else - var = bind_variable (list->word->word, input_string); + var = bind_variable (list->word->word, input_string); stupidly_hack_special_variables (list->word->word); var->attributes &= ~att_invisible; free (orig_input_string); Index: reserved.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/reserved.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- reserved.def 9 Mar 2002 16:05:42 -0000 1.3 +++ reserved.def 11 Mar 2002 14:32:14 -0000 1.4 @@ -42,7 +42,7 @@ in the variable REPLY. COMMANDS are executed after each selection until a break or return command is executed. $END - + $BUILTIN case $SHORT_DOC case WORD in [PATTERN [| PATTERN]...) COMMANDS ;;]... esac Selectively execute COMMANDS based upon WORD matching PATTERN. The Index: set.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/set.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- set.def 10 Mar 2002 21:45:14 -0000 1.3 +++ set.def 11 Mar 2002 14:32:14 -0000 1.4 @@ -30,8 +30,7 @@ extern int noclobber, no_brace_expansion, posixly_correct; #if defined (READLINE) -extern int rl_editing_mode; -/*extern int no_line_editing;*/ +extern int rl_editing_mode; //, no_line_editing; #endif /* READLINE */ #define USAGE_STRING "set [--abefhknotuvxldHCP] [-o option] [arg ...]" @@ -60,7 +59,9 @@ emacs use an emacs-style line editing interface #endif /* READLINE */ errexit same as -e +#if defined (BANG_HISTORY) histexpand same as -H +#endif /* BANG_HISTORY */ ignoreeof the shell will not exit upon reading EOF interactive-comments allow comments to appear in interactive commands @@ -117,7 +118,9 @@ } o_options[] = { { "allexport", 'a' }, { "errexit", 'e' }, +#if defined (BANG_HISTORY) { "histexpand", 'H' }, +#endif /* BANG_HISTORY */ { "monitor", 'm' }, { "noexec", 'n' }, { "noglob", 'f' }, Index: source.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/source.def,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- source.def 10 Mar 2002 21:45:14 -0000 1.4 +++ source.def 11 Mar 2002 14:32:14 -0000 1.5 @@ -30,7 +30,7 @@ $BUILTIN . $DOCNAME dot $FUNCTION source_builtin -$SHORT_DOC . [filename] +$SHORT_DOC . filename Read and execute commands from FILENAME and return. The pathnames in $PATH are used to find the directory containing FILENAME. $END @@ -128,7 +128,10 @@ /* POSIX shells exit if non-interactive and file error. */ if (posixly_correct && !interactive_shell) - longjmp (top_level, EXITPROG); + { + last_command_exit_value = 1; + longjmp (top_level, EXITPROG); + } return (EXECUTION_FAILURE); } Index: trap.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/trap.def,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- trap.def 10 Mar 2002 21:45:14 -0000 1.3 +++ trap.def 11 Mar 2002 14:32:14 -0000 1.4 @@ -155,15 +155,15 @@ { case SIGINT: if (interactive) - signal (SIGINT, sigint_sighandler); + set_signal_handler (SIGINT, sigint_sighandler); else - signal (SIGINT, termination_unwind_protect); + set_signal_handler (SIGINT, termination_unwind_protect); break; #ifdef SIGQUIT case SIGQUIT: /* Always ignore SIGQUIT. */ - signal (SIGQUIT, SIG_IGN); + set_signal_handler (SIGQUIT, SIG_IGN); break; #endif case SIGTERM: @@ -173,7 +173,7 @@ case SIGTSTP: #endif /* JOB_CONTROL */ if (interactive) - signal (sig, SIG_IGN); + set_signal_handler (sig, SIG_IGN); break; } break; Index: ulimit.def =================================================================== RCS file: /cvsroot/winbash/winbash/builtins/ulimit.def,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ulimit.def 10 Mar 2002 15:54:11 -0000 1.4 +++ ulimit.def 11 Mar 2002 14:32:14 -0000 1.5 @@ -86,7 +86,7 @@ #if !defined (RLIMTYPE) # define RLIMTYPE long # define string_to_rlimtype string_to_long -# define print_rlimtype(n, nl) printf ("%ld%s", n, nl ? "\n" : "") +# define print_rlimtype(num, nl) printf ("%ld%s", num, nl ? "\n" : "") #endif static void print_long (); @@ -443,8 +443,14 @@ #endif /* USGr4 */ case u_CPU_TIME_LIMIT: +#if defined (RLIMIT_CPU) cmd = RLIMIT_CPU; goto do_ulimit; +#else + errno = EINVAL; + return ((RLIMTYPE)-1); +# endif /* !RLIMIT_CPU */ + case u_STACK_SIZE: cmd = RLIMIT_STACK; @@ -633,7 +639,9 @@ { u_PHYS_MEM_SIZE, RLIMIT_RSS, 1024, "max memory size (kbytes)" }, #endif /* USGr4 && RLIMIT_RSS */ { u_STACK_SIZE, RLIMIT_STACK, 1024, "stack size (kbytes)" }, +#if defined (RLIMIT_CPU) { u_CPU_TIME_LIMIT, RLIMIT_CPU, 1, "cpu time (seconds)" }, +#endif /* RLIMIT_CPU */ #if defined (RLIMIT_NPROC) { u_MAX_USER_PROCS, RLIMIT_NPROC, 1, "max user processes" }, #endif /* RLIMIT_NPROC */ |
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv6262 Modified Files: .build MANIFEST NEWS README bashhist.c bashhist.h bashline.c config.h cpp-Makefile error.c execute_cmd.c expr.c input.c input.h jobs.c jobs.h newversion.c nojobs.c parse.y shell.c shell.h siglist.c siglist.h subst.c test.c trap.c variables.c variables.h version.h Log Message: Major realignment to 1.14.7 Index: .build =================================================================== RCS file: /cvsroot/winbash/winbash/.build,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- .build 11 Mar 2002 04:56:11 -0000 1.9 +++ .build 11 Mar 2002 14:32:11 -0000 1.10 @@ -1 +1 @@ -1 +5 Index: MANIFEST =================================================================== RCS file: /cvsroot/winbash/winbash/MANIFEST,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- MANIFEST 9 Mar 2002 03:39:12 -0000 1.1.1.1 +++ MANIFEST 11 Mar 2002 14:32:12 -0000 1.2 @@ -274,7 +274,6 @@ CWRU/misc/open-files.c f CWRU/misc/sigs.c f CWRU/misc/pid.c f -CWRU/misc/printenv f CWRU/misc/sigstat.c f CWRU/misc/bison f CWRU/misc/aux-mach-desc f @@ -304,6 +303,7 @@ documentation/article.txt f support/cat-s f support/mksysdefs f +support/printenv f support/getcppsyms.c f support/cppmagic f support/bash.xbm f Index: NEWS =================================================================== RCS file: /cvsroot/winbash/winbash/NEWS,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- NEWS 9 Mar 2002 03:39:12 -0000 1.1.1.1 +++ NEWS 11 Mar 2002 14:32:12 -0000 1.2 @@ -1,134 +1,10 @@ -This file documents the bugs fixed between this release, bash-1.14.2, -and the last bash release, 1.14.1. +This file documents the bugs fixed between this release, bash-1.14.7, +and the last public bash release, 1.14.6. 1. Bugs fixed in Bash -a. Command name completion inside command substitution constructs now - works. - -b. Command word completion now performs tilde expansion to avoid passing - filenames with tildes to stat(). - -c. Fixed a bug in brace completion that caused core dumps when there was - only one completion. - -d. Fixed `getopts' to work when $# > 9 - -e. Fixed a typo in getopts which causes OPTIND to be set to bad values. - -f. Fixed a bug in `read' which left stray escape characters in strings when - reading \<newline> - -g. Fixed `read' to dequote strings before assigning them to variables if any - backslash-escaped characters were read. - -h. Fixed a memory leak in `read' when no variable names were supplied. - -i. Changed calls to signal() that installed a handler to set_signal_handler(). - -j. Fixed a Makefile problem so that $(CC) is passed to makes in all library - subdirectories. - -k. Fixed a typo in cpp-Makefile which prevented `bashbug' from installing - -l. Fixed a bug in the input buffering code which occasionally caused the - fd bash was using to read a script to be closed unexpectedly. - -m. Fixed a bug in the job control code which caused core dumps when commands - were run from a SIGCHLD trap - -n. Fixed a bug in the job control code so that script jobs dying due to - SIGINT don't make the shell think it got a SIGINT also - -o. Fixes to machine descriptions: SunOS, SVR4.2, SCO, hpux_8, hpux_9, SVR4, - RiscOS, DG AViiON - -p. New machine descriptions: tahoe/4.3BSD, m68k/NetBSD, i860/SVR4, - tandem/SVR3 - -q. Fixed an incorrect declaration of sbrk() on hpux_9 - -r. Added a test for OPENDIR_NOT_ROBUST to the `portbash' scripts - -s. Fixed a redundant declaration of sys_siglist on FreeBSD - -t. Fixed a bug in the variable assignment code which tried to expand tildes - in some contexts even if they were quoted - -u. Fixed a bug in process substitution that manifested itself on systems - with /dev/fd and caused the file descriptor to be closed inappropriately - -v. Added code to `support/mksysdefs' to compensate for problems in some - versions of i386 SVR4.2 - -w. Fixes to the makefiles to make relative paths in `srcdir' work correctly - -x. Fixed an off-by-one error in the `test' builtin /dev/fd emulation - -y. Fixed a problem with function execution that prevented `break' and - `continue' from working across `return' - -z. Fixed a problem with `bind' that caused problems with readline when - executed from ~/.bashrc. - -aa. Fixed `support/mksysdefs' to run the correct version of `uname' on SCO - -2. Bugs fixed in Readline - -a. Signal handling was reworked to save and restore the signal mask and - flags on Posix.1 systems - -b. Fixed a problem with skipping comment lines while reading the inputrc - file - -c. Fixed a problem with quoted word break characters in the completion code - -d. Fixes to the display line wrapping code when using prompts with - invisible characters - -e. Fixed problems with horizontal scrolling when using prompts with - invisible characters - -f. A few problems which made the display code slower than necessary have - been fixed. - -g. Fixed a problem with redisplay after a SIGWINCH was received, especially - with multi-line prompts. - -h. The readline texinfo manual was thoroughly overhauled and all known - mistakes fixed. - -i. Fixed a off-by-one error in the history buffer allocation code that - sometimes caused the GNU malloc to abort - -j. Fixed a typo in the typedef declaring the history state structure - -k. Fixed readline to bind the arrow keys to default values after the - inputrc and termcap capabilities are tested, not before - -l. Functions missing correct prologues were fixed. - -m. Fixed a bug that made readline misbehave after a command's output was - flushed with ^O - -n. Fixed the tty code to call the functions that reset the meta key - and keypad before putting the terminal driver back into icanon mode - -3. New Features in Bash - -[none] - -4. New Features in Readline - -a. `insert-last-argument' now a standard part of the readline library - -b. Quoting of filenames by the completer may now be disabled by completion - functions. - -c. Readline now uses the last column on terminals supporting autowrap - -d. Readline now sets up the 8-bit input and output defaults based on the - value of $LC_CTYPE - -e. `history_stifled' variable replaced with history_is_stifled() function +a. A memory leak that caused long-running scripts to eventually consume + all available memory was fixed. +b. A sign-extension bug that caused a security hole for non-interactive + shells was fixed. Index: README =================================================================== RCS file: /cvsroot/winbash/winbash/README,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- README 11 Mar 2002 01:47:04 -0000 1.2 +++ README 11 Mar 2002 14:32:12 -0000 1.3 @@ -1,25 +1,52 @@ -This is the source for the version of bash for win32 that we use here at -Motive. I believe this version of bash was originally ported by our very own -FAQ - a set of frequently-asked questions about Bash with answers -Jerry Frain during his banner days at Tivoli. Since then, another Tivoli -alumni and motive superstar, Enrico Brunetta, has also added functionality and -fixed bugs in this source. Who knows who else has had their hands in this.... +This README file is in -*- text -*- mode, because Emacs likes it that way. -Things of interest... +This is GNU Bash, version 1.14. Bash is the GNU Project's Bourne +Again SHell, an interactive shell with Bourne shell syntax (/bin/sh); +but also with interactive command line editing, job control on +architectures that support it, Csh-like history features and brace +expansion, and a slew of other stuff. For more information on the +features of Bash that are new to this type of shell, see the file +`documentation/features.texi'. There is also a DVI file there, as +well as a large man page. -Debugging - there is currently no dev studio project here, just makefiles. -However, a debug version and pdb are generated by default. To have bash start -from a debugger when it is run, add the entries found in debug.reg to your -registry. This will cause windows to start bash from the debugger you specify -(note that you may need to specify a full path). +To compile it, try typing `make'. Bash auto-configures the build +process, so no intervention should be necessary. If you want to +use gcc, type `make CC=gcc CPPNAME='$(CC) -E''. -If you want to build a release version of bash (no debugging symbols), just -use 'make RELEASE=1' +You may want to read the file INSTALL in this directory for more +information if the make fails. -------------------------------------------------------------------------------- -Last Modified: $Date$ [$Author$] +If you are a csh user and wish to convert your csh aliases to Bash +aliases, you may wish to use the script in examples/alias-conv.sh +as a starting point. -=============================================================================== -local variables: -mode: text -end: +Bug reports for 1.14 should be sent to: + + bug...@pr... + +using the `bashbug' program that is built and installed at the same +time as bash. + +The discussion list "bug...@pr..." often contains information +about new ports of Bash, or discussions of new features or behavior +changes that people would like. This mailing list is also available +as a usenet newsgroup: gnu.bash.bug. + +When you send a bug report to bas...@pr..., please +include: + + * the version number of Bash + * the machine and OS that it is running on (see .machine or .made) + * a description of the bug + * a recipe for recreating the bug reliably + * a fix for the bug if you have one! + +The `bashbug' program includes much of this automatically. + +While the Bash maintainers do not promise to fix all bugs, we would +like this shell to be the best that we can make it. + +Enjoy! + +Chet Ramey +c...@po... Index: bashhist.c =================================================================== RCS file: /cvsroot/winbash/winbash/bashhist.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- bashhist.c 10 Mar 2002 23:25:31 -0000 1.3 +++ bashhist.c 11 Mar 2002 14:32:12 -0000 1.4 @@ -33,7 +33,7 @@ /* Non-zero means to remember lines typed to the shell on the history list. This is different than the user-controlled behaviour; this becomes zero when we read lines from a file, for example. */ -/* int remember_on_history = 1; */ +//int remember_on_history = 1; /* The number of lines that Bash has added to this history session. */ int history_lines_this_session = 0; @@ -43,7 +43,7 @@ /* Non-zero means do no history expansion on this line, regardless of what history_expansion says. */ -/* int history_expansion_inhibited = 0; */ +//int history_expansion_inhibited = 0; /* By default, every line is saved in the history individually. I.e., if the user enters: @@ -82,6 +82,7 @@ int history_control = 0; /* Variables declared in other files used here. */ +//extern int interactive; extern int current_command_line_count; extern int delimiter_depth; Index: bashhist.h =================================================================== RCS file: /cvsroot/winbash/winbash/bashhist.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- bashhist.h 10 Mar 2002 21:45:13 -0000 1.2 +++ bashhist.h 11 Mar 2002 14:32:12 -0000 1.3 @@ -21,7 +21,7 @@ #if !defined (__BASHHIST_H__) #define __BASHHIST_H__ -/* extern int remember_on_history; */ +//extern int remember_on_history; extern int history_lines_this_session; extern int history_lines_in_file; extern int history_expansion; @@ -29,7 +29,7 @@ extern int command_oriented_history; # if defined (BANG_HISTORY) -/* extern int history_expansion_inhibited; */ +//extern int history_expansion_inhibited; # endif /* BANG_HISTORY */ extern void load_history (); Index: bashline.c =================================================================== RCS file: /cvsroot/winbash/winbash/bashline.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- bashline.c 11 Mar 2002 04:50:29 -0000 1.3 +++ bashline.c 11 Mar 2002 14:32:12 -0000 1.4 @@ -182,11 +182,10 @@ off this occasionally confusing behaviour. */ rl_unbind_key_in_map (CTRL('J'), emacs_meta_keymap); rl_unbind_key_in_map (CTRL('M'), emacs_meta_keymap); - #if defined (VI_MODE) rl_unbind_key_in_map (CTRL('E'), vi_movement_keymap); #endif - + #if defined (BRACE_COMPLETION) rl_add_defun ("complete-into-braces", bash_brace_completion, -1); rl_bind_key_in_map ('{', bash_brace_completion, emacs_meta_keymap); @@ -396,18 +395,18 @@ initialize_hostname_list () { // char *temp; - +// // temp = get_string_value ("HOSTFILE"); // if (!temp) // temp = get_string_value ("hostname_completion_file"); - - //if (!temp) - // temp = ETCHOSTS; - - //snarf_hosts_from_file (temp); +// if (!temp) +// temp = ETCHOSTS; +// +// snarf_hosts_from_file (temp); + doEnumHosts(NULL); sort_hostname_list (); - + if (hostname_list) hostname_list_initialized++; } @@ -669,7 +668,6 @@ sort_hostname_list (); for(i=0;i<strlen(text);i++) text[i] = toupper(text[i]); - /* The list is sorted. Do a binary search on it for the first character in TEXT, and then grovel the names of interest. */ Index: config.h =================================================================== RCS file: /cvsroot/winbash/winbash/config.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- config.h 10 Mar 2002 23:25:31 -0000 1.2 +++ config.h 11 Mar 2002 14:32:12 -0000 1.3 @@ -37,7 +37,7 @@ /* Define JOB_CONTROL if your operating system supports BSD-like job control. */ -/* #define JOB_CONTROL */ +//#define JOB_CONTROL /* Note that vanilla System V machines don't support BSD job control, although some do support Posix job control. */ @@ -97,17 +97,16 @@ /* this is for NT version 3.5 defaults */ #endif - /* The value for PATH when invoking `command -p'. This is only used when the Posix.2 confstr () function, or CS_PATH define are not present. */ #define STANDARD_UTILS_PATH \ "/bin:/usr/bin:/usr/ucb:/usr/sbin:/sbin:/etc:/usr/etc:/usr/lib" - + /* Put system-specific default mail directories here. */ #if defined (__bsdi__) || defined (__FreeBSD__) || defined (__NetBSD__) # define DEFAULT_MAIL_PATH "/var/mail/" #endif - + #if !defined (DEFAULT_MAIL_PATH) #if defined (USG) # define DEFAULT_MAIL_PATH "/usr/mail/" @@ -179,7 +178,7 @@ /* Define ONESHOT if you want sh -c 'command' to avoid forking to execute `command' whenever possible. */ -/* #define ONESHOT */ +//#define ONESHOT /* Default primary and secondary prompt strings. */ #define PPROMPT "bash\\$ " Index: cpp-Makefile =================================================================== RCS file: /cvsroot/winbash/winbash/cpp-Makefile,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- cpp-Makefile 11 Mar 2002 01:47:04 -0000 1.3 +++ cpp-Makefile 11 Mar 2002 14:32:12 -0000 1.4 @@ -44,7 +44,7 @@ /* Define HAVE_GCC if you have the GNU C compiler. */ /* #define HAVE_GCC */ -#if defined (__GNUC__) && !defined (HAVE_GCC) && !defined (NeXT) +#if defined (__GNUC__) && !defined (HAVE_GCC) && !defined (GCC_STANDARD) # define HAVE_GCC #endif @@ -1013,7 +1013,7 @@ .made: $(Program) bashbug cp .machine .made -$(Program): .build $(OBJECTS) $(LIBDEP) .distribution +$(Program): .build $(OBJECTS) $(LIBDEP) $(srcdir)/.distribution $(RM) $@ $(PURIFY) $(CC) $(LDFLAGS) $(LIBRARY_LDFLAGS) -o $(Program) $(OBJECTS) $(LIBRARIES) ls -l $(Program) @@ -1083,10 +1083,9 @@ version.o: version.c version.h -shell.o: shell.c shell.h flags.h shell.c posixstat.h filecntl.h stdc.h \ - $(ENDIAN_HEADER) parser.h +shell.o: shell.c shell.h flags.h shell.c posixstat.h filecntl.h stdc.h $(ENDIAN_HEADER) parser.h $(RM) $@ - $(CC) $(CFG_FLAGS) $(CCFLAGS) $(CPPFLAGS) -c $< + $(CC) $(CFG_FLAGS) $(CCFLAGS) $(CPPFLAGS) -c $(srcdir)/shell.c #if !defined (HAVE_WAIT_H) $(ENDIAN_HEADER): endian.aux @@ -1100,7 +1099,7 @@ variables.o: variables.c shell.h hash.h flags.h variables.h $(RM) $@ - $(CC) -c $(CCFLAGS) $(HOSTTYPE_DECL) $(CPPFLAGS) $< + $(CC) -c $(CCFLAGS) $(HOSTTYPE_DECL) $(CPPFLAGS) $(srcdir)/variables.c builtins/libbuiltins.a: $(BUILTIN_OBJS) config.h memalloc.h build_builtins (libbuiltins.a) @@ -1467,7 +1466,7 @@ $(SHELL) -c 'f=$(Program)-`cat .distribution`.tar.Z;uuencode $$f $$f | split -800 - uuencoded/$$f.uu.' newversion.aux: newversion.c - $(CC) $(CCFLAGS) -o $@ $< + $(CC) $(CCFLAGS) -o $@ $(srcdir)/newversion.c newversion: newversion.aux $(RM) .build @@ -1532,7 +1531,7 @@ @$(CC) -o $@ $(SUPPORT_SRC)recho.c tests check: force $(Program) recho - @cp recho tests + @cp recho $(SUPPORT_SRC)printenv tests ( cd tests ; sh run-all ) /**/# Here is a convenient rule when you arrive at a new site and wish to Index: error.c =================================================================== RCS file: /cvsroot/winbash/winbash/error.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- error.c 10 Mar 2002 21:45:13 -0000 1.3 +++ error.c 11 Mar 2002 14:32:12 -0000 1.4 @@ -37,6 +37,7 @@ #include "general.h" #include "nt_types.h" +//extern int interactive_shell; extern char *dollar_vars[]; extern char *shell_name; extern char *the_current_maintainer; @@ -163,11 +164,11 @@ format = va_arg (args, char *); vfprintf (stderr, format, args); fprintf (stderr, "\n"); + va_end (args); #if defined (__NT_VC__) fflush (stderr); #endif /* __NT_VC__ */ - if (exit_immediately_on_error) exit (1); } Index: execute_cmd.c =================================================================== RCS file: /cvsroot/winbash/winbash/execute_cmd.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- execute_cmd.c 11 Mar 2002 01:47:04 -0000 1.5 +++ execute_cmd.c 11 Mar 2002 14:32:12 -0000 1.6 @@ -18,7 +18,7 @@ along with Bash; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #if defined (AIX) && defined (RISC6000) && !defined (__GNUC__) -#pragma alloca + #pragma alloca #endif /* AIX && RISC6000 && !__GNUC__ */ #if defined (__NT_VC__) #include <windows.h> @@ -46,9 +46,9 @@ #endif [...1247 lines suppressed...] { if (!file_to_lose_on) @@ -3911,7 +3913,7 @@ i = *p_index; if (!string || (i >= (int)strlen (string))) - return ((char *) NULL); + return ((char *)NULL); /* Each call to this routine leaves the index pointing at a colon if there is more to the path. If I is > 0, then increment past the @@ -3948,7 +3950,7 @@ value = xmalloc (1 + i - start); strncpy (value, string + start, i - start); - value[i - start] = '\0'; + value [i - start] = '\0'; return (value); } Index: expr.c =================================================================== RCS file: /cvsroot/winbash/winbash/expr.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- expr.c 11 Mar 2002 01:47:04 -0000 1.3 +++ expr.c 11 Mar 2002 14:32:12 -0000 1.4 @@ -257,7 +257,7 @@ popexp (); - /* Restore the value of evalbuf so that any subsequent LONGJMP calls + /* Restore the value of evalbuf so that any subsequent longjmp calls will have a valid location to jump to. */ xbcopy ((char *)old_evalbuf, (char *)evalbuf, sizeof (jmp_buf)); Index: input.c =================================================================== RCS file: /cvsroot/winbash/winbash/input.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- input.c 10 Mar 2002 21:45:13 -0000 1.2 +++ input.c 11 Mar 2002 14:32:12 -0000 1.3 @@ -22,10 +22,10 @@ #include "bashtypes.h" #include <sys/file.h> +#include "filecntl.h" #include "posixstat.h" #include <stdio.h> #include <errno.h> -#include "filecntl.h" #include "bashansi.h" #include "config.h" @@ -46,6 +46,8 @@ void free_buffered_stream (); +//extern int interactive_shell; + int bash_input_fd_changed; /* This provides a way to map from a file descriptor to the buffer associated with that file descriptor, rather than just the other @@ -232,6 +234,9 @@ } return (fd2); } + +/* Return 1 if a seek on FD will succeed. */ +#define fd_is_seekable(fd) (lseek ((fd), 0L, SEEK_CUR) >= 0) /* Take FD, a file descriptor, and create and return a buffered stream corresponding to it. If something is wrong and the file descriptor Index: input.h =================================================================== RCS file: /cvsroot/winbash/winbash/input.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- input.h 9 Mar 2002 16:05:41 -0000 1.2 +++ input.h 11 Mar 2002 14:32:12 -0000 1.3 @@ -20,7 +20,6 @@ #if !defined (_INPUT_H) #define _INPUT_H -#include <stdio.h> #include "stdc.h" /* Function pointers can be declared as (Function *)foo. */ Index: jobs.c =================================================================== RCS file: /cvsroot/winbash/winbash/jobs.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- jobs.c 11 Mar 2002 01:47:04 -0000 1.5 +++ jobs.c 11 Mar 2002 14:32:12 -0000 1.6 @@ -1844,13 +1844,6 @@ return (-1); } - if (JOBSTATE (job) == JDEAD) - { - report_error ("%s: job has terminated", this_command_name); - UNBLOCK_CHILD (oset); - return (-1); - } - if (!foreground && already_running) { report_error ("%s: bg background job?", this_command_name); @@ -2072,7 +2065,7 @@ { flag = WUNTRACED; if (sigchld || s) - flag |= WNOHANG; + flag |= WNOHANG; pid = WAITPID (-1, &status, flag); if (sigchld && (flag & WNOHANG)) sigchld--; Index: jobs.h =================================================================== RCS file: /cvsroot/winbash/winbash/jobs.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- jobs.h 9 Mar 2002 16:05:42 -0000 1.2 +++ jobs.h 11 Mar 2002 14:32:12 -0000 1.3 @@ -288,6 +288,7 @@ /* Stuff from the jobs.c file. */ extern pid_t original_pgrp, shell_pgrp, pipeline_pgrp; +//extern pid_t last_made_pid, last_asynchronous_pid; extern int current_job, previous_job; extern int asynchronous_notification; extern JOB **jobs; Index: newversion.c =================================================================== RCS file: /cvsroot/winbash/winbash/newversion.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- newversion.c 9 Mar 2002 16:58:09 -0000 1.3 +++ newversion.c 11 Mar 2002 14:32:12 -0000 1.4 @@ -20,8 +20,6 @@ with Bash; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ -#define FOPEN(name, mode) fopen(name, mode); - #include <sys/types.h> #include "posixstat.h" #include <stdio.h> @@ -236,7 +234,7 @@ char *name; name = makename (filename); - stream = FOPEN (name, "r"); + stream = fopen (name, "r"); free (name); if (stream == (FILE *)NULL) return (0); @@ -254,7 +252,7 @@ char *name; name = makename (filename); - stream = FOPEN (name, "r"); + stream = fopen (name, "r"); free (name); if (stream == (FILE *)NULL) return (0); @@ -267,7 +265,7 @@ must_open (name, mode) char *name, *mode; { - FILE *temp = FOPEN (name, mode); + FILE *temp = fopen (name, mode); if (!temp) { Index: nojobs.c =================================================================== RCS file: /cvsroot/winbash/winbash/nojobs.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- nojobs.c 10 Mar 2002 23:25:31 -0000 1.3 +++ nojobs.c 11 Mar 2002 14:32:12 -0000 1.4 @@ -94,6 +94,9 @@ extern int errno; #endif /* !errno */ +//extern int interactive, interactive_shell, login_shell; +//extern int subshell_environment; +//extern int last_command_exit_value; #if defined (_POSIX_VERSION) extern sigset_t top_level_mask; #endif Index: parse.y =================================================================== RCS file: /cvsroot/winbash/winbash/parse.y,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- parse.y 11 Mar 2002 05:12:52 -0000 1.6 +++ parse.y 11 Mar 2002 14:32:12 -0000 1.7 @@ -56,8 +56,11 @@ #define YYDEBUG 1 extern int eof_encountered; +//extern int no_line_editing; extern int current_command_number; +//extern int interactive, interactive_shell, login_shell; extern int posixly_correct; +//extern int last_command_exit_value; extern int interrupt_immediately; extern char *shell_name, *current_host_name; extern Function *last_shell_builtin, *this_shell_builtin; Index: shell.c =================================================================== RCS file: /cvsroot/winbash/winbash/shell.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- shell.c 10 Mar 2002 23:25:31 -0000 1.5 +++ shell.c 11 Mar 2002 14:32:12 -0000 1.6 @@ -78,6 +78,7 @@ extern char *dist_version; extern int patch_level, build_version; +//extern int subshell_environment; /* Found in execute_cmd.c. */ //extern int last_command_exit_value; extern int return_catch_flag; extern jmp_buf return_catch; @@ -190,7 +191,7 @@ static int quiet = 0; /* Be quiet when starting up. */ static int make_login_shell = 0; /* Make this shell be a `-bash' shell. */ -int no_line_editing_private = 0; /* Don't do fancy line editing. */ +int no_line_editing_ = 0; /* Don't do fancy line editing. */ int no_brace_expansion = 0; /* Non-zero means no foo{a,b} -> fooa foob. */ int posixly_correct = 0; /* Non-zero means posix.2 superset. */ @@ -211,7 +212,7 @@ { "version", Int, &do_version, (char **)0x0 }, { "quiet", Int, &quiet, (char **)0x0 }, { "login", Int, &make_login_shell, (char **)0x0 }, - { "nolineediting", Int, &no_line_editing_private, (char **)0x0 }, + { "nolineediting", Int, &no_line_editing_, (char **)0x0 }, { "nobraceexpansion", Int, &no_brace_expansion, (char **)0x0 }, { "posix", Int, &posixly_correct, (char **)0x0 }, { (char *)0x0, Int, (int *)0x0, (char **)0x0 } @@ -750,7 +751,6 @@ #endif /* HISTORY */ interactive = interactive_shell = 0; no_line_editing = 1; - #if defined (JOB_CONTROL) set_job_control (0); #endif /* JOB_CONTROL */ @@ -883,16 +883,16 @@ } if (login_shell && !no_profile) - { - if (act_like_sh) - maybe_execute_file ("~/.profile", 1); - else - { - if (maybe_execute_file ("~/.bash_profile", 1) == 0) - if (maybe_execute_file ("~/.bash_login", 1) == 0) - maybe_execute_file ("~/.profile", 1); - } - } + { + if (act_like_sh) + maybe_execute_file ("~/.profile", 1); + else + { + if (maybe_execute_file ("~/.bash_profile", 1) == 0) + if (maybe_execute_file ("~/.bash_login", 1) == 0) + maybe_execute_file ("~/.profile", 1); + } + } /* Execute ~/.bashrc for most shells. Never execute it if ACT_LIKE_SH is set, or if NO_RC is set. @@ -916,15 +916,15 @@ bash YES */ if (!act_like_sh && !no_rc && - (interactive_shell || (isnetconn (fileno (stdin)) && - local_pending_command))) - maybe_execute_file (bashrc_file, 1); + (interactive_shell || (isnetconn (fileno (stdin)) && + local_pending_command))) + maybe_execute_file (bashrc_file, 1); } - /* Try a TMB suggestion. If running a script, then execute the - file mentioned in the ENV variable. */ - if (!privileged_mode && sourced_env++ == 0 && act_like_sh == 0 && - (posixly_correct || !interactive_shell)) + /* Try a TMB suggestion. If running a script, then execute the + file mentioned in the ENV variable. */ + if (!privileged_mode && sourced_env++ == 0 && act_like_sh == 0 && + (posixly_correct || !interactive_shell)) { char *env_file = (char *)NULL; @@ -1041,7 +1041,6 @@ { old_interactive = interactive; interactive = 0; - } return_val = SETJMP (return_catch); @@ -1161,9 +1160,9 @@ current_command_number++; /* POSIX spec: "-n: The shell reads commands but does - not execute them; this can be used to check for shell - script syntax errors. The shell ignores the -n option - for interactive shells. " */ + not execute them; this can be used to check for shell + script syntax errors. The shell ignores the -n option + for interactive shells. " */ if (interactive_shell || !read_but_dont_execute) { executing = 1; @@ -1413,6 +1412,7 @@ login_shell = make_login_shell = interactive = executing = 0; debugging = do_version = line_number = last_command_exit_value = 0; forced_interactive = interactive_shell = subshell_environment = 0; + #if defined (HISTORY) # if defined (BANG_HISTORY) history_expansion = 0; @@ -1618,9 +1618,9 @@ sigaction (XSIG (i), &act, &oact); terminating_signals[i].orig_handler = oact.sa_handler; /* Don't do anything with signals that are ignored at shell entry - if the shell is not interactive. */ + if the shell is not interactive. */ if (!interactive_shell && oact.sa_handler == SIG_IGN) - { + { sigaction (XSIG (i), &oact, &act); set_signal_ignored (XSIG (i)); } @@ -1631,9 +1631,9 @@ for (i = 0; i < TERMSIGS_LENGTH; i++) { terminating_signals[i].orig_handler = - set_signal_handler (XSIG (i), termination_unwind_protect); + set_signal_handler (XSIG (i), termination_unwind_protect); /* Don't do anything with signals that are ignored at shell entry - if the shell is not interactive. */ + if the shell is not interactive. */ if (!interactive_shell && terminating_signals[i].orig_handler == SIG_IGN) { set_signal_handler (XSIG (i), SIG_IGN); Index: shell.h =================================================================== RCS file: /cvsroot/winbash/winbash/shell.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- shell.h 11 Mar 2002 04:50:29 -0000 1.3 +++ shell.h 11 Mar 2002 14:32:12 -0000 1.4 @@ -77,11 +77,11 @@ #define Q_HERE_DOCUMENT 0x2 #define Q_KEEP_BACKSLASH 0x4 -/* extern char **shell_environment; */ +//extern char **shell_environment; extern WORD_LIST *rest_of_args; /* Generalized global variables. */ -/* extern int executing, login_shell; */ +//extern int executing, login_shell; /* Structure to pass around that holds a bitmap of file descriptors to close, and the size of that structure. Used in execute_cmd.c. */ Index: siglist.c =================================================================== RCS file: /cvsroot/winbash/winbash/siglist.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- siglist.c 9 Mar 2002 03:39:12 -0000 1.1.1.1 +++ siglist.c 11 Mar 2002 14:32:12 -0000 1.2 @@ -28,9 +28,7 @@ # include "trap.h" #endif -#ifndef __linux__ char *sys_siglist[NSIG]; -#endif #ifndef __NT_VC__ extern char *xmalloc (), *malloc (); Index: siglist.h =================================================================== RCS file: /cvsroot/winbash/winbash/siglist.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- siglist.h 10 Mar 2002 23:25:31 -0000 1.3 +++ siglist.h 11 Mar 2002 14:32:12 -0000 1.4 @@ -28,8 +28,8 @@ #endif /* Solaris || USGr4_2 || drs6000 || amiga || Minix */ #if !defined (Solaris) && !defined (Linux) && !defined (__BSD_4_4__) && \ - !defined (Minix) && !defined (NetBSD) && !defined (FreeBSD) && \ - !defined (BSD_OS) + !defined (Minix) && !defined (NetBSD) && !defined (FreeBSD) && \ + !defined (BSD_OS) extern char *sys_siglist[]; #endif /* !Solaris && !Linux && !__BSD_4_4__ && !Minix && !NetBSD && !FreeBSD && !BSD_OS */ Index: subst.c =================================================================== RCS file: /cvsroot/winbash/winbash/subst.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- subst.c 11 Mar 2002 05:12:52 -0000 1.7 +++ subst.c 11 Mar 2002 14:32:12 -0000 1.8 @@ -46,19 +46,18 @@ #include "filecntl.h" #if defined (READLINE) -#include <readline/readline.h> +# include <readline/readline.h> #else -#include <tilde/tilde.h> +# include <tilde/tilde.h> #endif -#include "builtins/getopt.h" [...4876 lines suppressed...] { SET_INT_VAR (name, asynchronous_notification); } -#endif /* JOB_CONTROL */ +#endif /* JOB_CONTROL */ /* If the variable `nolinks' exists, it specifies that symbolic links are not to be followed in `cd' commands. */ @@ -4901,9 +4896,9 @@ s = atoi (tt); /* According to POSIX, setting OPTIND=1 resets the internal state - of getopt (). */ + of getopt (). */ if (s < 0 || s == 1) - s = 0; + s = 0; } getopts_reset (s); } Index: test.c =================================================================== RCS file: /cvsroot/winbash/winbash/test.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- test.c 10 Mar 2002 21:45:13 -0000 1.3 +++ test.c 11 Mar 2002 14:32:12 -0000 1.4 @@ -156,6 +156,7 @@ char *format, *arg; { #if !defined (STANDALONE) +// extern int interactive_shell; extern char *get_name_for_error (); if (!interactive_shell) fprintf (STDERR, "%s: ", get_name_for_error ()); Index: trap.c =================================================================== RCS file: /cvsroot/winbash/winbash/trap.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- trap.c 11 Mar 2002 04:50:29 -0000 1.5 +++ trap.c 11 Mar 2002 14:32:12 -0000 1.6 @@ -53,7 +53,9 @@ static void change_signal (), restore_signal (); /* Variables used here but defined in other files. */ +//extern int interactive_shell, interactive; extern int interrupt_immediately; +//extern int last_command_exit_value; /* The list of things to do originally, before we started trapping. */ SigHandler *original_signals[NSIG]; @@ -474,13 +476,13 @@ old_exit_value = last_command_exit_value; /* Run the trap only if signal 0 is trapped and not ignored. */ - if ((sigmodes[0] & SIG_TRAPPED) && - (trap_list[0] != (char *)IGNORE_SIG) && - (sigmodes[0] & SIG_INPROGRESS) == 0) + if ((sigmodes[0] & SIG_TRAPPED) && + (trap_list[0] != (char *)IGNORE_SIG) && + (sigmodes[0] & SIG_INPROGRESS) == 0) { char *trap_command; int code; - + trap_command= savestring (trap_list[0]); sigmodes[0] &= ~SIG_TRAPPED; sigmodes[0] |= SIG_INPROGRESS; @@ -503,12 +505,9 @@ restore_signal (sig) int sig; { - /* only restore signal if allowed to do so */ - if (!(sigmodes[sig] & SIG_NO_TRAP)) { - set_signal_handler (sig, original_signals[sig]); - change_signal (sig, (char *)DEFAULT_SIG); - sigmodes[sig] &= ~SIG_TRAPPED; - } + set_signal_handler (sig, original_signals[sig]); + change_signal (sig, (char *)DEFAULT_SIG); + sigmodes[sig] &= ~SIG_TRAPPED; } /* Free all the allocated strings in the list of traps and reset the trap @@ -619,7 +618,7 @@ last_command_exit_value = old_exit_value; sigmodes[SIGINT] &= ~SIG_INPROGRESS; - + if (sigmodes[SIGINT] & SIG_CHANGED) { free (saved_command); Index: variables.c =================================================================== RCS file: /cvsroot/winbash/winbash/variables.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- variables.c 10 Mar 2002 23:25:31 -0000 1.4 +++ variables.c 11 Mar 2002 14:32:12 -0000 1.5 @@ -92,12 +92,12 @@ /* The list of variables that may not be unset in this shell. */ char **non_unsettable_vars = (char **)NULL; -static char *have_local_variables; /* XXX */ -static int local_variable_stack_size = 0; /* XXX */ +static char *have_local_variables; /* XXX */ +static int local_variable_stack_size = 0; /* XXX */ /* Some forward declarations. */ static void initialize_dynamic_variables (); -static void sbrand (); /* set bash random number generator. */ +static void sbrand (); /* set bash random number generator. */ static int qsort_var_comp (); /* Make VAR be auto-exported. VAR is a pointer to a SHELL_VAR. */ @@ -134,40 +134,40 @@ name = xmalloc (1 + string_length); while ((c = *string++) && c != '=') - name[char_index++] = c; + name[char_index++] = c; name[char_index] = '\0'; /* If exported function, define it now. */ if (!privileged_mode && STREQN ("() {", string, 4)) - { - SHELL_VAR *f; - char *eval_string; + { + SHELL_VAR *f; + char *eval_string; - eval_string = xmalloc (3 + string_length + strlen (name)); - sprintf (eval_string, "%s %s", name, string); + eval_string = xmalloc (3 + string_length + strlen (name)); + sprintf (eval_string, "%s %s", name, string); - parse_and_execute (eval_string, name, 0); + parse_and_execute (eval_string, name, 0); - if (name[char_index - 1] == ')') - name[char_index - 2] = '\0'; + if (name[char_index - 1] == ')') + name[char_index - 2] = '\0'; - if (f = find_function (name)) - { - f->attributes |= (att_exported | att_imported); - array_needs_making = 1; - } - else - report_error ("error importing function definition for `%s'", name); - } + if (f = find_function (name)) + { + f->attributes |= (att_exported | att_imported); + array_needs_making = 1; + } + else + report_error ("error importing function definition for `%s'", name); + } else - { - SHELL_VAR *v; + { + SHELL_VAR *v; - v = bind_variable (name, string); - v->attributes |= (att_exported | att_imported); - array_needs_making = 1; - } + v = bind_variable (name, string); + v->attributes |= (att_exported | att_imported); + array_needs_making = 1; + } free (name); } @@ -185,8 +185,8 @@ current_dir = get_working_directory ("shell-init"); if (current_dir) { - bind_variable ("PWD", current_dir); - free (current_dir); + bind_variable ("PWD", current_dir); + free (current_dir); } } @@ -339,44 +339,44 @@ if ((login_shell == 1) && ((*shell_name != '/') || !(isletter (*shell_name) && shell_name[1] == ':'))) { - /* If HOME doesn't exist, set it. */ - temp_var = set_if_not ("HOME", current_user.home_dir); - temp_var->attributes |= att_exported; + /* If HOME doesn't exist, set it. */ + temp_var = set_if_not ("HOME", current_user.home_dir); + temp_var->attributes |= att_exported; - name = savestring (current_user.shell); + name = savestring (current_user.shell); } else if (*shell_name == '/') - name = savestring (shell_name); - else - { - int s; - - tname = find_user_command (shell_name); - if (tname == 0) - { - /* Try the current directory. If there is not an executable - there, just punt and use the login shell. */ - s = file_status (shell_name); - if (s & FS_EXECABLE) - { - tname = make_absolute (shell_name, get_string_value ("PWD")); - if (*shell_name == '.') - { - name = canonicalize_pathname (tname); - free (tname); - } - else - name = tname; - } - else - name = savestring (current_user.shell); - } + name = savestring (shell_name); else { - name = full_pathname (tname); - free (tname); + int s; + + tname = find_user_command (shell_name); + if (tname == 0) + { + /* Try the current directory. If there is not an executable + there, just punt and use the login shell. */ + s = file_status (shell_name); + if (s & FS_EXECABLE) + { + tname = make_absolute (shell_name, get_string_value ("PWD")); + if (*shell_name == '.') + { + name = canonicalize_pathname (tname); + free (tname); + } + else + name = tname; + } + else + name = savestring (current_user.shell); + } + else + { + name = full_pathname (tname); + free (tname); + } } - } /* Make the exported environment variable SHELL be the user's login shell. Note that the `tset' command looks at this variable @@ -409,9 +409,9 @@ if (remember_on_history) { if (posixly_correct) - name = tilde_expand ("~/.sh_history"); + name = tilde_expand ("~/.sh_history"); else - name = tilde_expand ("~/.bash_history"); + name = tilde_expand ("~/.bash_history"); set_if_not ("HISTFILE", name); free (name); @@ -440,9 +440,9 @@ { sv_command_oriented_history ("command_oriented_history"); if (find_variable ("history_control")) - sv_history_control ("history_control"); /* gone in next release */ + sv_history_control ("history_control"); /* gone in next release */ else - sv_history_control ("HISTCONTROL"); + sv_history_control ("HISTCONTROL"); } #endif /* HISTORY */ @@ -546,20 +546,20 @@ tlist = get_hash_bucket (i, var_hash_table); while (tlist) - { - var = (SHELL_VAR *)tlist->data; + { + var = (SHELL_VAR *)tlist->data; - if (!function || (*function) (var)) - { - if (list_index + 1 >= list_size) - list = (SHELL_VAR **) - xrealloc (list, (list_size += 20) * sizeof (SHELL_VAR *)); + if (!function || (*function) (var)) + { + if (list_index + 1 >= list_size) + list = (SHELL_VAR **) + xrealloc (list, (list_size += 20) * sizeof (SHELL_VAR *)); - list[list_index++] = var; - list[list_index] = (SHELL_VAR *)NULL; + list[list_index++] = var; + list[list_index] = (SHELL_VAR *)NULL; + } + tlist = tlist->next; } - tlist = tlist->next; - } } return (list); } @@ -687,31 +687,31 @@ /* **************************************************************** */ /* DYNAMIC VARIABLES - + These are variables whose values are generated anew each time they are referenced. These are implemented using a pair of function pointers in the struct variable: assign_func, which is called from bind_variable, and dynamic_value, which is called from find_variable. - + assign_func is called from bind_variable, if bind_variable discovers that the variable being assigned to has such a function. The function is called as - SHELL_VAR *temp = (*(entry->assign_func)) (entry, value) + SHELL_VAR *temp = (*(entry->assign_func)) (entry, value) and the (SHELL_VAR *)temp is returned as the value of bind_variable. It is usually ENTRY (self). - + dynamic_value is called from find_variable to return a `new' value for the specified dynamic varible. If this function is NULL, the variable is treated as a `normal' shell variable. If it is not, however, then this function is called like this: - tempvar = (*(var->dynamic_value)) (var); - + tempvar = (*(var->dynamic_value)) (var); + Sometimes `tempvar' will replace the value of `var'. Other times, the shell will simply use the string value. Pretty object-oriented, huh? - + Be warned, though: if you `unset' a special variable, it loses its special meaning, even if you subsequently set it. - + The special assignment code would probably have been better put in subst.c: do_assignment, in the same style as stupidly_hack_special_variables, but I wanted the changes as @@ -888,6 +888,7 @@ if (!var) var = var_lookup (name, shell_variables); + if (!var) return ((SHELL_VAR *)NULL); @@ -903,7 +904,7 @@ char *name; { return (find_variable_internal - (name, (variable_context || this_shell_builtin || builtin_env))); + (name, (variable_context || this_shell_builtin || builtin_env))); } /* Look up the function entry whose name matches STRING. @@ -972,7 +973,7 @@ new_var->attributes = 0; if (exported_p (old_var)) - new_var->attributes |= att_exported; + new_var->attributes |= att_exported; new_var->prev_context = old_var; elt = add_hash_item (savestring (name), shell_variables); @@ -990,9 +991,9 @@ have_local_variables = xrealloc (have_local_variables, local_variable_stack_size); bzero ((char *)have_local_variables + old_size, - local_variable_stack_size - old_size); + local_variable_stack_size - old_size); } - have_local_variables[variable_context] = 1; /* XXX */ + have_local_variables[variable_context] = 1; /* XXX */ return (new_var); } @@ -1015,24 +1016,24 @@ entry->name = savestring (name); if (value) - { - if (*value) - entry->value = savestring (value); - else - { - entry->value = xmalloc (1); - entry->value[0] = '\0'; - } - } + { + if (*value) + entry->value = savestring (value); + else + { + entry->value = xmalloc (1); + entry->value[0] = '\0'; + } + } else - entry->value = (char *)NULL; + entry->value = (char *)NULL; entry->dynamic_value = (DYNAMIC_FUNC *)NULL; entry->assign_func = (DYNAMIC_FUNC *)NULL; /* Always assume variables are to be made at toplevel! - make_local_variable has the responsibilty of changing the - variable context. */ + make_local_variable has the responsibilty of changing the + variable context. */ entry->context = 0; entry->prev_context = (SHELL_VAR *)NULL; @@ -1044,48 +1045,48 @@ else { if (readonly_p (entry)) - { - report_error ("%s: read-only variable", name); - return (entry); - } + { + report_error ("%s: read-only variable", name); + return (entry); + } /* Variables which are bound are visible. */ entry->attributes &= ~att_invisible; /* If this variable has had its type set to integer (via `declare -i'), - then do expression evaluation on it and store the result. The - functions in expr.c (evalexp and bind_int_variable) are responsible - for turning off the integer flag if they don't want further - evaluation done. */ + then do expression evaluation on it and store the result. The + functions in expr.c (evalexp and bind_int_variable) are responsible + for turning off the integer flag if they don't want further + evaluation done. */ if (integer_p (entry)) - { - long val; + { + long val; - val = evalexp (value); - /* We cannot free () entry->value before this; what if the string - we are working is `even=even+2'? We need the original value - around while we are doing the evaluation to handle any possible - recursion. */ - FREE (entry->value); - entry->value = itos (val); - } + val = evalexp (value); + /* We cannot free () entry->value before this; what if the string + we are working is `even=even+2'? We need the original value + around while we are doing the evaluation to handle any possible + recursion. */ + FREE (entry->value); + entry->value = itos (val); + } else - { - FREE (entry->value); + { + FREE (entry->value); - if (value) - { - if (*value) - entry->value = savestring (value); - else - { - entry->value = xmalloc (1); - entry->value[0] = '\0'; - } - } - else - entry->value = (char *)NULL; - } + if (value) + { + if (*value) + entry->value = savestring (value); + else + { + entry->value = xmalloc (1); + entry->value[0] = '\0'; + } + } + else + entry->value = (char *)NULL; + } } if (mark_modified_vars) @@ -1170,7 +1171,7 @@ new_elt->data = (char *)new_var; if (exported_p (new_var)) - set_var_auto_export (new_var->name); + set_var_auto_export (new_var->name); } /* Have to save a copy of name here, because it might refer to @@ -1228,15 +1229,15 @@ list = map_over (variable_in_context, varlist); if (list) - { - for (i = 0; var = list[i]; i++) - makunbound (var->name, varlist); + { + for (i = 0; var = list[i]; i++) + makunbound (var->name, varlist); - free (list); - } + free (list); + } } - have_local_variables[variable_context] = 0; /* XXX */ + have_local_variables[variable_context] = 0; /* XXX */ } /* Delete the entire contents of the hash table. */ @@ -1252,25 +1253,25 @@ bucket = hashed_vars->bucket_array[i]; while (bucket) - { - BUCKET_CONTENTS *temp = bucket; - SHELL_VAR *var, *prev; + { + BUCKET_CONTENTS *temp = bucket; + SHELL_VAR *var, *prev; - bucket = bucket->next; + bucket = bucket->next; - var = (SHELL_VAR *)temp->data; + var = (SHELL_VAR *)temp->data; - while (var) - { - prev = var->prev_context; - dispose_variable (var); + while (var) + { + prev = var->prev_context; + dispose_variable (var); - var = prev; - } + var = prev; + } - free (temp->key); - free (temp); - } + free (temp->key); + free (temp); + } hashed_vars->bucket_array[i] = (BUCKET_CONTENTS *)NULL; } } @@ -1309,14 +1310,14 @@ entry->assign_func = (DYNAMIC_FUNC *)NULL; /* Functions are always made at the top level. This allows a - function to define another function (like autoload). */ + function to define another function (like autoload). */ entry->context = 0; } if (entry->value) dispose_command ((COMMAND *)entry->value); - if (value) /* I don't think this can happen anymore */ + if (value) /* I don't think this can happen anymore */ entry->value = (char *)copy_command (value); else entry->value = (char *)NULL; @@ -1326,7 +1327,7 @@ if (mark_modified_vars) entry->attributes |= att_exported; - entry->attributes &= ~att_invisible; /* Just to be sure */ + entry->attributes &= ~att_invisible; /* Just to be sure */ array_needs_making = 1; @@ -1348,11 +1349,11 @@ copy->name = savestring (var->name); if (function_p (var)) - copy->value = (char *)copy_command ((COMMAND *)var->value); + copy->value = (char *)copy_command ((COMMAND *)var->value); else if (var->value) - copy->value = savestring (var->value); + copy->value = savestring (var->value); else - copy->value = (char *)NULL; + copy->value = (char *)NULL; copy->dynamic_value = var->dynamic_value; copy->assign_func = var->assign_func; @@ -1377,7 +1378,7 @@ { entry = bind_variable (name, ""); if (!no_invisible_vars) - entry->attributes |= att_invisible; + entry->attributes |= att_invisible; } entry->attributes |= att_readonly; } @@ -1406,7 +1407,7 @@ { entry = bind_variable (name, ""); if (!no_invisible_vars) - entry->attributes |= att_invisible; + entry->attributes |= att_invisible; } set_auto_export (entry); @@ -1441,12 +1442,12 @@ while (c = string[indx]) { /* The following is safe. Note that '=' at the start of a word - is not an assignment statement. */ + is not an assignment statement. */ if (c == '=') - return (indx); + return (indx); if (!isletter (c) && !digit (c) && c != '_') - return (0); + return (0); indx++; } @@ -1518,23 +1519,23 @@ char *value; if (function_p (var)) - value = named_function_string - ((char *)NULL, (COMMAND *)function_cell (var), 0); + value = named_function_string + ((char *)NULL, (COMMAND *)function_cell (var), 0); else - value = value_cell (var); + value = value_cell (var); if (value) - { - int name_len = strlen (var->name); - int value_len = strlen (value); - char *p; + { + int name_len = strlen (var->name); + int value_len = strlen (value); + char *p; - p = list[list_index] = xmalloc (2 + name_len + value_len); - strcpy (p, var->name); - p[name_len] = '='; - strcpy (p + name_len + 1, value); - list_index++; - } + p = list[list_index] = xmalloc (2 + name_len + value_len); + strcpy (p, var->name); + p[name_len] = '='; + strcpy (p + name_len + 1, value); + list_index++; + } } free (vars); @@ -1566,7 +1567,7 @@ value = string_list (list); if (list) - dispose_words (list); + dispose_words (list); free (temp); } @@ -1600,7 +1601,7 @@ if (echo_command_at_execute) { /* The K*rn shell prints the `+ ' in front of assignment statements, - so we do too. */ + so we do too. */ fprintf (stderr, "%s%s\n", indirection_level_string (), temp); fflush (stderr); } @@ -1624,25 +1625,25 @@ for (i = 0; array[i]; i++) { if (STREQN (array[i], name, l) && array[i][l] == '=') - { - SHELL_VAR *temp; + { + SHELL_VAR *temp; - temp = new_shell_variable (name); + temp = new_shell_variable (name); - if (array[i][l + 1]) - temp->value = savestring (&array[i][l + 1]); - else - temp->value = (char *) NULL; + if (array[i][l + 1]) + temp->value = savestring (&array[i][l + 1]); + else + temp->value = (char *) NULL; - temp->attributes = att_exported; - temp->context = 0; - temp->prev_context = (SHELL_VAR *)NULL; + temp->attributes = att_exported; + temp->context = 0; + temp->prev_context = (SHELL_VAR *)NULL; - temp->dynamic_value = (DYNAMIC_FUNC *)NULL; - temp->assign_func = (DYNAMIC_FUNC *)NULL; + temp->dynamic_value = (DYNAMIC_FUNC *)NULL; + temp->assign_func = (DYNAMIC_FUNC *)NULL; - return (temp); - } + return (temp); + } } return ((SHELL_VAR *)NULL); } @@ -1718,7 +1719,7 @@ char **array; { qsort (array, array_len (array), sizeof (char *), - (Function *)qsort_string_compare); + (Function *)qsort_string_compare); } #define ISFUNC(s, o) ((s[o + 1] == '(') && (s[o + 2] == ')')) @@ -1744,11 +1745,11 @@ for (i = 0; array && array[i]; i++) { if (STREQN (assign, array[i], equal_offset + 1)) - { - free (array[i]); - array[i] = savestring (assign); - return (array); - } + { + free (array[i]); + array[i] = savestring (assign); + return (array); + } } array = (char **)xrealloc (array, ((2 + i) * sizeof (char *))); array[i++] = savestring (assign); @@ -1769,14 +1770,14 @@ if (array_needs_making) { if (export_env) - free_array (export_env); + free_array (export_env); #ifdef SHADOWED_ENV export_env = - (char **)xmalloc ((1 + array_len (shell_environment)) * sizeof (char *)); + (char **)xmalloc ((1 + array_len (shell_environment)) * sizeof (char *)); for (i = 0; shell_environment[i]; i++) - export_env[i] = savestring (shell_environment[i]); + export_env[i] = savestring (shell_environment[i]); export_env[i] = (char *)NULL; #else /* !SHADOWED_ENV */ @@ -1788,25 +1789,25 @@ temp_array = make_var_array (shell_variables); for (i = 0; temp_array && temp_array[i]; i++) - export_env = add_or_supercede (temp_array[i], export_env); + export_env = add_or_supercede (temp_array[i], export_env); free_array (temp_array); temp_array = make_var_array (shell_functions); for (i = 0; temp_array && temp_array[i]; i++) - export_env = add_or_supercede (temp_array[i], export_env); + export_env = add_or_supercede (temp_array[i], export_env); free_array (temp_array); if (function_env) - for (i = 0; function_env[i]; i++) - export_env = add_or_supercede (function_env[i], export_env); + for (i = 0; function_env[i]; i++) + export_env = add_or_supercede (function_env[i], export_env); if (temporary_env) - for (i = 0; temporary_env[i]; i++) - export_env = add_or_supercede (temporary_env[i], export_env); + for (i = 0; temporary_env[i]; i++) + export_env = add_or_supercede (temporary_env[i], export_env); /* If we changed the array, then sort it alphabetically. */ if (temporary_env || function_env) - sort_char_array (export_env); + sort_char_array (export_env); array_needs_making = 0; } @@ -1862,7 +1863,7 @@ { var = find_variable ((char *)name); if (var && exported_p (var)) - return (value_cell (var)); + return (value_cell (var)); } else { @@ -1871,13 +1872,13 @@ /* In some cases, s5r3 invokes getenv() before main(); BSD systems using gprof also exhibit this behavior. This means that shell_variables will be 0 when this is invoked. We look up the - variable in the real environment in that case. */ + variable in the real environment in that case. */ for (i = 0; environ[i]; i++) - { - if ((STREQN (environ[i], name, len)) && (environ[i][len] == '=')) - return (environ[i] + len + 1); - } + { + if ((STREQN (environ[i], name, len)) && (environ[i][len] == '=')) + return (environ[i] + len + 1); + } } return ((char *)NULL); Index: variables.h =================================================================== RCS file: /cvsroot/winbash/winbash/variables.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- variables.h 9 Mar 2002 03:39:12 -0000 1.1.1.1 +++ variables.h 11 Mar 2002 14:32:13 -0000 1.2 @@ -49,8 +49,8 @@ #define function_cell(var) (COMMAND *)((var)->value) /* Stuff for hacking variables. */ -/* extern int variable_context; */ -/* extern HASH_TABLE *shell_variables, *shell_functions; */ +//extern int variable_context; +//extern HASH_TABLE *shell_variables, *shell_functions; extern char *dollar_vars[]; extern char **export_env; extern char **non_unsettable_vars; Index: version.h =================================================================== RCS file: /cvsroot/winbash/winbash/version.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- version.h 11 Mar 2002 05:12:52 -0000 1.9 +++ version.h 11 Mar 2002 14:32:13 -0000 1.10 @@ -8,9 +8,9 @@ #define PATCHLEVEL 7 /* The last built version of this shell. */ -#define BUILDVERSION 1 +#define BUILDVERSION 5 /* A version string for use by sccs and the what command. */ -#define SCCSVERSION "@(#)Bash version 1.14.7(1) GNU" +#define SCCSVERSION "@(#)Bash version 1.14.7(5) GNU" |
From: Enrico B. <enr...@us...> - 2002-03-11 14:32:46
|
Update of /cvsroot/winbash/winbash/CWRU In directory usw-pr-cvs1:/tmp/cvs-serv6262/CWRU Modified Files: README Added Files: PLATFORMS POSIX.NOTES changelog Log Message: Major realignment to 1.14.7 --- NEW FILE: PLATFORMS --- The version of bash in this directory has been compiled on the following systems: Sun 690 SunOS 4.1.2 Sparcstation SunOS 5.3 Sparcstation NetBSD 0.9a 386 BSDI BSD/386 1.0, 1.1 NeXTstation NeXT OS 2.1 IBM RT IBM/4.3 (AOS) Motorola Delta 88K SVR3.2 Decstation 3100 Ultrix 4.3 Dec 4000 Alpha AXP DEC OSF/1 V1.3 386 ISC UNIX 3.0.1 386 FreeBSD 1.1 IBM RS/6000 AIX 3.2 Amiga Amiga UNIX 2.1 Sony NEWS 841 NEWS OS HP 9000/834 HP/UX 7.0 --- NEW FILE: POSIX.NOTES --- Starting bash with the `-posix' command-line option or setting the variable POSIXLY_CORRECT while bash is running will cause bash to conform more closely to the Posix.2 standard by changing the behavior to match that specified by Posix.2 in areas where the bash default differs. The following list is what's changed when `posixly_correct' is enabled: 1. When a command in the hash table no longer exists, bash will re-search $PATH to find the new location. 2. The >& redirection does not redirect stdout and stderr. 3. The message printed by the job control code and builtins when a job exits with a non-zero status is `Done(status)'. 4. The <> redirection does not open a file for both stdin and stdout, but rather opens it for read-write on fd 0. 5. Reserved words may not be aliased. 6. The Posix.2 PS1 and PS2 expansions of `!' -> history number and `!!' -> `!' are enabled. 7. Interactive comments are enabled by default. (Note that this version has them on by default anyway.) 8. The Posix.2 startup files are executed ($ENV) rather than the normal bash files. 9. Tilde expansion is only performed on assignments preceding a command name, rather than on all assignment statements on the line. 10. The default history file is ~/.sh_history (default value of $HISTFILE). 11. The output of `kill -l' prints all the signal names on a single line, separated by spaces. 12. Non-interactive shells exit if `file' in `. file' is not found. 13. Redirection operators do not perform pathname expansion on the word in the redirection unless the shell is interactive 14. Function names must be valid shell identifiers. That is, they may not contain characters other than letters, digits, and underscores, and may not start with a digit There is other Posix.2 behavior that bash does not implement. Specifically: 1. There are no `special builtins' and `regular builtins'. All builtins are equivalent. This means that: o assignment statements affect the execution environment of all builtins, not just special ones o temporary assignments do not persist after Posix.2 special builtins complete o Functions are found before Posix.2 special builtins o The shell does not exit upon errors while executing Posix.2 special builtins 2. $LINENO does not represent the line number of a command within a function 3. The arithmetic evaluator does not implement the `e ? e1 : e2' conditional expression --- NEW FILE: changelog --- 6/2 --- lib/readline/readline.c - fixed an off-by-one error in the kill ring reallocation code in rl_kill_text Makefile - replaced instances of /bin/sh with $(SHELL) Makefile, cpp-Makefile, documentation/Makefile - added a working `uninstall' target [1.14.0 FCS release made available for FTP] 6/3 --- README - added note about building with gcc, same as in Makefile documentation/Makefile - some versions of make don't understand `$*' in a regular recipe; replace with features.dvi in the recipe for features.ps 6/4 --- subst.c - fix up the calls to string_extract_double_quoted and string_extract_single_quoted in char_is_quoted so the initial value of the index is *after* the opening quote character - make sure we only return 1 from char_is_quoted if the index into the string after a call to string_extract_double_quoted or string_extract_single_quoted is *greater than* `eindex' lib/readline/complete.c - change the order and sense of the quoting tests in rl_complete_internal so that the expensive char_is_quoted is only called if `scan' actually is a word break character shell.c - fixed a typo in the test for a restricted shell builtins/exec.def - need to include flags.h 6/6 --- make_cmd.c - make sure that we don't try to walk down a null command tree in connect_async_list (tickled by `(command &) &') - if a command has the CMD_WANT_SUBSHELL bit set in its flags, don't even try to walk the command tree and move the `&'; just connect the command with a null command using `&' execute_cmd.c - make sure we don't try to reference a command struct without first checking it (case '&') 6/7 --- machines.h - fix a typo in the NeXT/i386 description; change the NeXT description to #define HAVE_RESOURCE if not already defined rather than putting -DHAVE_RESOURCE into the SYSDEP_CFLAGS 6/9 --- Makefile - make sure all of the rules that reinvoke `make' have the `-f bash-Makefile' before the assignment statements; some versions of make like it that way variables.c - make sure that `interactive' is set to 0 before evaluating the string containing an exported function obtained from the environment, so that it does not try to execute PROMPT_COMMAND (this may not be the best fix) 6/13 ---- documentation/Makefile - make sure all of the directories exist before trying to install doc files into them lib/readline/history.c - add a missing O_TRUNC to the open call for writing in history_truncate_file trap.c - run_interrupt_trap should only try to run the trap command if the value is not IMPOSSIBLE_TRAP_HANDLER Makefile - add `realclean' lib/readline/complete.c - do the same kind of double-quoting a replacement string if the user supplies the opening double quote as we would if we were adding both quotes ourselves variables.c - fixed the variable initialization so that history_control/HISTCONTROL can be inherited from a parent shell INSTALL, README, cpp-Makefile, documentation/bash.1, documentation/readline.3 - ai.mit.edu -> prep.ai.mit.edu shell.c - fixed a problem with setting no_line_editing to the result of the check for running inside emacs, thereby losing any value initialized by the `-nolineediting' flag cpp-Makefile - `make distclean' will now remove the `installed-bash' link print_cmd.c - fixed a problem with undefined variables when HAVE_VARARGS_H is not defined 6/14 ---- lib/readline/history.c - fixed an error in the csh history expansion code so that the `-y' word designator now expands to `0-y' rather than `1-y' lib/readline/isearch.c - changed an absolute check for a character falling within the ASCII 32-126 range (printable chars) with checks for CTRL_P and META_CHAR and a check against the value RUBOUT - changed a `break' to a `continue' so that the first non-matching character in the search string does not cause the search to end abruptly - initialize prev_line_found to 0 at the top of rl_search_history to avoid duplicate history lines being saved across searches lib/readline/rltty.c - consolidated repeated code for setting special characters into `SET_SPECIAL' defines lib/readline/readline.c - include <sys/ioctl.h> if VSTATUS is defined - add bindable command rl_tty_status (unbound by default) lib/readline/funmap.c - assign bindable command name `tty-status' to rl_tty_status INSTALL - add note about compiling with gcc, same text as README lib/readline/display.c - many changes and tweaks to make redisplay work better when the prompt has invisible characters. These changes are non-optimal in that the prompt is redrawn more than it needs to be, but things are a hell of a lot better than they were 6/15 ---- documentation/Makefile - make a variable NROFF that people can set to `groff -Tascii' if they don't have real nroff - changed the suffix rules to use $< support/bashbug.sh - if rmail doesn't exist or fails, save the bug report in ~/dead.bashbug execute_cmd.c - in setup_async_signals, only ignore SIGINT and SIGQUIT if job control is not active. If it is active and the job is restarted, SIGINT remains ignored, and the now-foregrounded job is not interruptible subst.c - fixed up a problem with char_is_quoted that caused backslash- escaped characters to cause incorrect results tests/run-dollars, tests/dollar-at.sh, tests/dollar-star.sh - since the error messages produced by `cat' vary, changed `cat' to `recho' and updated the correct answers file machines.h - fixes to CRAY_STACKSEG_END definitions for different versions of Unicos on the YMP (from Bill Jones) - Motorola SVR4 machines have getcwd() and should not undef HAVE_GETCWD - on hpux 9.x, don't try to link with -lPW if compiling with gcc (for alloca) parse.y - an ugly fix for a compiler problem with structure assignment on the cray 6/16 ---- builtins/wait.def - replaced a call to sscanf with a validity check using all_digits() and a call to atoi, since a pid_t is not necessarily an int, and the sscanf clobbered the stack frame on systems where it is shorter than an int (e.g., SCO) lib/readline/display.c - since META_CHAR and the other macros only work with unsigned chars, make rl_character_len convert its argument to an unsigned char before testing it documentation/Makefile - use $(INSTALL_DATA) instead of $(CP) to install the man pages and info files cpp-Makefile - use INSTALL_PROGRAM and INSTALL_DATA to install binaries and documentation; pass both values to installs in subdirectories 6/18 ---- builtins/ulimit.def - compensate for systems which define RLIMIT_OFILE instead of RLIMIT_NOFILE, or don't provide such a compatibility define themselves shell.c - make maybe_execute_file check for directories and print an appropriate error message, since it's doing an fstat anyway support/mksysdefs - added support for a `-s srcdir' option so it can find cpp-Makefile if ansi-Makefile is to be created Makefile - call mksysdefs with -s $(srcdir) jobs.c - add the magic #undef lines to avoid redefinition warnings on SunOS 4 only 6/20 ---- cpp-Makefile - install `bashbug' with `make install' trap.c - make sure that `interactive' is set to 0 when running trap commands builtins/umask.c - fixed typo in usage error message subst.c - fix process_substitute to set subshell_environment jobs.c, nojobs.c - only mess with the terminal settings for an interactive shell that is not in a subshell environment 6/21 ---- lib/readline/history.h - add extern declaration of history_get builtins/fc.def - make history replacement when using `r' or `fc -s' obey the setting of HISTCONTROL general.c - in canonicalize_pathname, preserve a double // at the start of an absolute pathname, since that means something special for the network directory system README, INSTALL - updated information about submitting bug reports lib/readline/vi_mode.c, lib/readline/isearch.c - make sure unistd.h is included before rldefs.h, if HAVE_UNISTD_H is defined 6/24 ---- lib/readline/complete.c - add `#' to the list of characters which cause a completed filename to be quoted execute_cmd.c - be more careful about closing pipe file descriptors in do_piping; don't want to have `dup2(i, i); close(i);' problem lib/readline/{keymaps,readline}.h - include local copies of include files if READLINE_LIBRARY is defined, otherwise include the `official, installed' versions using #include <readline/xxx.h> lib/readline/*.c - define READLINE_LIBRARY before including any files - include only `local' copies of include files using #include "xxx.h" rather than #include <readline/xxx.h> 6/26 ---- execute_cmd.c - check for clobbering the bash input stream before closing a file descriptor due to an r_close_this redirection lib/readline/history.c - made history_expand inhibit history expansion if the history expansion char is set to 0 lib/readline/chardefs.h - moved savestring() definition to rldefs.h - changed lowercase_p, uppercase_p, to_lower, to_upper defines to use <ctype.h> macros rather than assume ASCII lib/readline/bind.c, general.c, general.h - use strcasecmp, strncasecmp instead of str[n]icmp if HAVE_STRCASECMP is defined cpp-Makefile - pass -DHAVE_STRCASECMP to builds in the libraries, primarily readline machines.h - add HAVE_STRCASECMP to the entries for BSD/386, NetBSD, FreeBSD, and 4.4 BSD builtins/hash.def - add a fourth parameter to remember_filename, the initial value of times_found (0 if we're just looking it up for `hash', 1 for the command execution code) execute_cmd.c - call remember_filename with an initial value of 1 for times_found builtins/wait.def - handle a null argument with an error message builtins/common.c - parse_and_execute now takes a third parameter: the value for `interactive' while it is executing commands bashline.c, jobs.c, parse.y, shell.c, subst.c, trap.c, variables.c - set the new third argument to parse_and_execute appropriately builtins/eval.def, builtins/fc.def, builtins/source.def - set the new third argument to parse_and_execute appropriately builtins/help.def - changed a call to strnicmp to strncmp when trying to find what to give help on; it seems more correct 6/27 ---- machines.h - cleaned up the SunOS section so it no longer relies on HAVE_SHARED_LIBS being defined; it uses SunOS4 and SunOS5 instead support/mksysdefs - define SYSDEF to be SunOS4 or SunOS5 depending on the output of uname rather than looking for ld.so 6/29 ---- machines.h - minor change to the ardent titan machine description - move the ardent and stardent descriptions before the mips riscos description print_cmd.c - ardent machines also need the extern declaration for printf make_cmd.c - connect_async_list should do its work only if the lists to be backgrounded are connected with `;'. This makes `;' bind tighter than `&', so only the last job in the list is backgrounded. All other lists should have the entire thing put in the background parse.y - added a function `print_prompt' to take care of displaying the prompt string if readline is not being used. This fixes problems with the prompt being displayed before the status of completed jobs is printed 6/30 ---- builtins/fg_bg.def - `fg' and `bg' now print error messages if invoked when job control is disabled lib/readline/rltty.c - if not compiled into the shell, make get_tty_settings get and set the window size. This noop stops the process if it is started in the background lib/readline/readline.c - provide a function version of savestring, if not being compiled into the shell, since the macro has been removed from the `public' header files lib/readline/readline.h - provide all extern function declarations without checking whether VI_MODE or PAREN_MATCHING are defined. It does not hurt to define them if they are not used and not in the library, and other applications using readline can't tell whether or not VI_MODE was defined when the library was compiled anyway 7/1 --- machines.h - add #undef HAVE_DIRENT_H to the ardent titan description 7/2 --- lib/readline/chardefs.h - removed META_P define, renamed CTRL_P to CTRL_CHAR lib/readline/bind.c, lib/readline/isearch.c - changed instances of CTRL_P to CTRL_CHAR lib/readline/search.c - include <unistd.h> before rldefs.h, if HAVE_UNISTD_H is defined lib/readline/readline.c - declare PC, UP, and BC as extern rather than `local' to the readline library 7/5 --- bashline.c - implement command word completion inside of command substitution with a new function: `command_subst_completion_function' subst.c - new function to help with command subst completion: unclosed_pair lib/readline/complete.c - new variable rl_filename_quoting_desired, which can be set to 0 to inhibit the quoting of filenames after completion lib/readline/readline.h - declare rl_filename_completion_desired and rl_filename_quoting_desired builtins/bind.def - don't save the old value of rl_outstream before initializing readline -- it saves garbage values and screws up readline parse.y - don't have private state telling whether or not readline has been initialized -- use bash_readline_initialized like other functions in bashline.c lib/readline/readline.c - make the default 8-bit behavior be based on whether LC_CTYPE is defined and its value (accept iso-8859-1 or iso_8859_1) 7/6 --- variables.c - fix up the declaration of getenv() for convex machines 7/7 --- lib/readline/readline.c - fixed up typos in the declaration of `savestring' lib/readline/history.c - fixed an off-by-one error in the ADD_CHAR macro which caused one extra character to be overwritten, causing the gnu malloc to abort when that one character was at the end of an allocated block - changed the ADD_STRING macro to avoid some unnecessary xreallocs lib/readline/display.c - fixed a problem with move_cursor_relative -- function now returns immediately if it has nothing to do - fixed another problem with displaying prompts with invisible chars lib/readline/chardefs.h - fixed the CTRL macro to be right (agree with the BSD kernel, for example) cpp-Makefile - fixed typo in the `install' recipe 7/8 --- support/srcdir - fixed to handle srcdir when it begins with ./ or ../ to handle $(srcdir) being a relative path better cpp-Makefile - changed some include paths to $(BUILTIN_ABSSRC) when building in `builtins' to handle $(srcdir) being a relative path - change the `chmod' on bashbug to turn on read and execute for all - added a couple of definitions to make it easier for a later `configure' program support/mksysdefs - added a -i option to specify an alternate set of directories to search for include files lib/readline/bind.c - in rl_read_init_file, when skipping whitespace at the start of the line, decrement `i' so that we don't jump past the start of the next line machines.h - SCOv4 has a `robust' opendir that checks that you're actually opening a directory 7/11 ---- lib/readline/complete.c - make sure a word break character is unquoted before using it to separate out the current word for completing machines.h - new machine description: NetBSD on motorola m68k machines like the hp300 - undef HAVE_GETWD in the generic svr4 machine description, like other svr4 descriptions lib/readline/rltty.c - make sure to fflush (rl_outstream) after toggling the setting of the keypad and meta key portbash/libc.sh - add a test for OPENDIR_NOT_ROBUST support/getcppsyms.c - output __svr4__ if we find __uxps__ (this makes the Fujitsu port of SVR4 to the sparc build OK) 7/12 ---- lib/readline/display.c - more display-related fixes when the prompt has invisible chars; this time for screen updates when moving between screen lines lib/readline/readline.c, lib/readline/display.c - changes to make readline work with terminals that have auto-wrap from Per Bothner (new function _rl_update_final, term_xn changes, some efficiency speedups, new function space_to_eol) 7/13 ---- lib/readline/display.c - after moving up screen lines using term_up in _rl_move_vert, if the new screen line is 0, _rl_last_c_pos needs to be adjusted to take invisible characters into account. This was the source of many bugs 7/14 ---- documentation/Makefile - change instances of `groff' to `${GROFF}', GROFF is set to `groff' by default general.c, variables.c - moved `qsort_string_compare' from variables.c to general.c general.h, variables.h - moved declaration of `qsort_string_compare' from variables.h to general.h alias.c, lib/readline/funmap.c - moved qsort auxiliary functions after their use and added forward declarations to avoid warnings from ANSI C compilers memalloc.h - hpux_9 needs alloca declared as `extern void *' if __STDC__ is defined support/mksysdefs - removed HAVE_SHARED_LIBS entirely - make a call to /bin/uname -X for SCO machines to avoid running a different uname from the $PATH machines.h - new descriptions: Intel i860 running SVR4, Tahoe running 4.3 BSD - changed descriptions: Mips/RiscOS, DG AViiON, unknown machine jobs.c - changes to how the shell handles foreground jobs dying of SIGINT: an interactive shell using job control will no longer act as if it received a SIGINT if the foreground job dies from a SIGINT a non-interactive shell or shell without job control tries to differentiate between SIGINTs it has seen (in wait_sigint_handler) and a foreground job dying of a SIGINT not sent from the keyboard, and runs the normal SIGINT code only in the former case 7/15 ---- support/mksysdefs - check for ${UNAME}${RELEASE} expanding to `SunOS4*' or `SunOS5*' to set SYSDEF to SunOS4 or SunOS5, respectively. Apparently this does not work for Solbourne 7/18 ---- lib/readline/rltty.c - if output is being flushed on termios systems, loop until the FLUSHO bit is no longer set in the termios struct support/mksysdefs - added a -A flag to force creation of ansi-Makefile machines.h - new entry for Tandem machines running SVR3 7/19 ---- lib/readline/rldefs.h - include <termcap.h> if HAVE_TERMCAP_H is defined - use <termio.h> stuff if HAVE_TERMIO_H is defined and _POSIX_VERSION is not defined lib/readline/rldefs.h, lib/readline/history.c - include "config.h" if HAVE_CONFIG_H is defined lib/readline/{rldefs.h,signals.c,readline.c} - WINSIZE_IN_IOCTL_H -> GWINSZ_IN_SYS_IOCTL for compatibility with other GNU programs lib/readline/doc/Makefile - fixed up to create the readline and history manuals in dvi and ps format lib/readline/Makefile - changes inspired by the standalone readline-2.0 distribution 7/20 ---- lib/readline/history.c - new function, history_is_stifled (), returns history_stifled - set history_state flags member in the history state functions lib/readline/history.h - reorganized the function declarations, added missing declarations - history_stifled is no longer exported by the library - added a `flags' member to the HISTORY_STATE structure bashline.c - use history_is_stifled () instead of history_stifled lib/readline/readline.c, lib/readline/vi_mode.c - filled in correct argument declarations for functions called via keymaps (count, key) lib/readline/complete.c - efficiency improvement for compare_strings 7/21 ---- examples/dirfuncs - new directory functions from ksh book, contributed by Ken Konecki (ke...@wf...) machines.h - hpux_8 and hpux_9 should both #undef HAVE_ALLOCA unless gcc is being used 7/22 ---- bashline.c - fixed up command_word_completion_function so that filenames with leading tildes are completed correctly 7/26 ---- builtins/read.def - if -r not given, make sure CTLESC is removed from input string when reading \<newline> lib/readline/readline.c - new function bind_arrow_keys, which binds vt100/ansi arrow key escape sequences after reading the termcap definition and the inputrc file - new function rl_yank_last_arg, which does what insert-last-arg does in bash lib/readline/emacs_keymap.c - remove default bindings to rl_arrow_keys for M-[ and M-O - rl_yank_last_arg is now bound to `M-.' and `M-_' in emacs_meta_keymap subst.c - when performing process substitution on systems with /dev/fd, make sure the child clears the slot in dev_fd_list it gets from its parent so the file descriptor does not get closed inappropriately if reallocated by, e.g., pipe(2) bashline.c - removed insert_last_arg and the calls to bind in to `M-.' and `M-_'. `insert-last-argument' is now bound to rl_yank_last_arg for backwards compatibility lib/readline/funmap.c - `yank-last-arg' is now a named command for rl_yank_last_arg documentation/bash.1, documentation/readline.3 - add description of yank-last-arg as one of the readline user commands lib/readline/doc/rluser.texinfo - added description of yank-last-arg builtins/getopts.def - fixed a typo in the int-to-string code computing the value to set OPTIND to: had '\0' instead of '0' - made getopts handle the case where there are more than 9 dollar variables (where rest_of_args is non-null) correctly 7/28 ---- lib/readline/display.c - fixes to the display code for single-line-display in the presence of prompts containing invisible characters lib/readline/readline.c - if we are using horizontal scrolling and we have term_xn, decrement the screenwidth by 1, since we won't be doing any line wrapping 7/31 ---- jobs.c - new variable `freeze_jobs_list' to set when changes to the jobs list or status of jobs in the list (other than calling something like `jobs -n') are undesirable. This is set when execuing traps on SIGCHLD 8/1 --- subst.c - check that `~' is unquoted before performing tilde expansion in an assignment statement 8/3 --- bracecomp.c - keep brace completion from dumping core if there is only one match lib/readline/chardefs.h - add a define for digit_p, which returns the value of isdigit() lib/readline/readline.c - added function equivalents for uppercase_p, lowercase_p, to_upper, to_lower, pure_alphabetic, digit_p, and digit_value - replaced calls to numeric () with calls to digit_p, removed definition of numeric () lib/readline/history.c - digit -> digit_p lib/readline/vi_mode.c - replaced uses of the `isletter' define to use pure_alphabetic from chartypes.h - replaced uses of `numeric' with calls to digit_p - added do...while(0) to `exchange' define 8/4 --- execute_cmd.c - make sure execute_function saves and restores the current loop count with unwind_protect_int documentation/features.texi - change the `Shell Command Line Options' section to `Invoking Bash' to be closer to the GNU coding standards 8/5 --- builtins/read.def - fixed up a memory leak and made behavior correct when no variables given and backslash escaped at least one input char - if we added CTLESC anywhere while reading the input string, make sure we call dequote_string on each word of the input before calling bind_variable with that string subst.c - made an efficiency improvement to dequote_string -- don't do anything when we see CTLESC, just `continue' the loop Index: README =================================================================== RCS file: /cvsroot/winbash/winbash/CWRU/README,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- README 9 Mar 2002 04:43:15 -0000 1.2 +++ README 11 Mar 2002 14:32:13 -0000 1.3 @@ -1,52 +1,26 @@ -This README file is in -*- text -*- mode, because Emacs likes it that way. - -This is GNU Bash, version 1.14. Bash is the GNU Project's Bourne -Again SHell, an interactive shell with Bourne shell syntax (/bin/sh); -but also with interactive command line editing, job control on -architectures that support it, Csh-like history features and brace -expansion, and a slew of other stuff. For more information on the -features of Bash that are new to this type of shell, see the file -`documentation/features.texi'. There is also a DVI file there, as -well as a large man page. - -To compile it, try typing `make'. Bash auto-configures the build -process, so no intervention should be necessary. If you want to -use gcc, type `make CC=gcc CPPNAME='$(CC) -E''. - -You may want to read the file INSTALL in this directory for more -information if the make fails. +Notes: -If you are a csh user and wish to convert your csh aliases to Bash -aliases, you may wish to use the script in examples/alias-conv.sh -as a starting point. +ISC 386 machines must compile test.c without -O. The resultant shell dumps +core when test is invoked. -Bug reports for 1.14 should be sent to: +There have been reports that SCO 3.2v4.2 requires -DPRGP_PIPE in SCO_CFLAGS, +and that it has too many -D defines for SCO's cc (rcc works). - bug...@pr... +Contents of this directory: -using the `bashbug' program that is built and installed at the same -time as bash. +CWRU.chlog - my change log since the last release -The discussion list "bug...@pr..." often contains information -about new ports of Bash, or discussions of new features or behavior -changes that people would like. This mailing list is also available -as a usenet newsgroup: gnu.bash.bug. +KSH.README - list of similarities with ksh. Slightly out of date -When you send a bug report to bas...@pr..., please -include: +PLATFORMS.113 - list of platforms I have built this release on - * the version number of Bash - * the machine and OS that it is running on (see .machine or .made) - * a description of the bug - * a recipe for recreating the bug reliably - * a fix for the bug if you have one! +POSIX.NOTES - list of what changes for `posix mode' -The `bashbug' program includes much of this automatically. +README - this file -While the Bash maintainers do not promise to fix all bugs, we would -like this shell to be the best that we can make it. +RSH.README - explanation of the bash `restricted shell' mode -Enjoy! -Chet Ramey -c...@po... +misc - directory with some useful tools +OS-BUGS - directory with messages detailing some OS bugs and + the bash workarounds |