Thread View: gnu.bash.bug
1 messages
1 total messages
Started by Scott Schwartz
Mon, 21 Aug 1989 02:27
shell functions (bash 1.02)
Author: Scott Schwartz
Date: Mon, 21 Aug 1989 02:27
Date: Mon, 21 Aug 1989 02:27
54 lines
1996 bytes
1996 bytes
Consider this command line:
$ foo() { echo bar } # bash should accept this, but waits for more...
> ; # a semi-colon terminates
$
Also this shell function sometimes dumps core when run or printed with "set":
$ foo() {
> echo bar >/dev/null 2>&1
> }
$
My environment looks like the following, before typing the above:
psuvax1$ set
host=psuvax1
history=50
EUID=991
UID=991
HISTSIZE=500
BASH_VERSION=1.02
PWD=/home/psuvax1/schwartz
MAILPATH=/usr/spool/mail/schwartz
IFS=
HOME=/home/psuvax1/schwartz
SHELL=/pub/gnu/bin/bash
TERM=xterm
USER=schwartz
PATH=~schwartz/bin:~schwartz/bin/%sun4:.:/usr/new/bin:/usr/new:/usr/local:/usr/l
ocal/bin:/usr/ucb:/bin:/usr/bin:/usr/bin/X11:/usr/hosts:/usr/local/etc:/usr/etc:
/etc:/usr/gnu/bin:/usr/ibm
LOGNAME=schwartz
PS1=psuvax1$
PS2=>
SHLVL=2
BASH=/usr/gnu/bin/bash
HISTFILE=/dev/null
PAGER=more
ARCH=sun4
MANPATH=/usr/local/man:/usr/man
LD_LIBRARY_PATH=.
PRINTER=lw0
TERMCAP=vs|xterm|vs100:cr=^M:do=^J:nl=^J:bl=^G:le=^H:ho=\E[H:co#80:li#65:cl=\E[H
\E[2J:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\
E[4m:ue=\E[m:md=\E[1m:mr=\E[7m:me=\E[m:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:k1=
\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:ta=^I:pt:sf=\n:sr=\EM:al=\E[L:dl=\E[M:ic=\E[@:dc=\E
[P:MT:ks=\E[?1h\E=:ke=\E[?1l\E>:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:rs=\E[r\E
<\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:xn:AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:ti=\
E7\E[?47h:te=\E[2J\E[?47l\E8:hs:ts=\E[?E\E[?%i%dT:fs=\E[?F:es:ds=\E[?E:
CDPATH=.:..:~
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads