-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Thierry EXCOFFIER on 2/26/2006 8:59 AM:
>
> Description:
> LINES and COLUMNS variables are not exported,
> so applications using these variables can not
> find the screen size.
POSIX states that "Users should not
I ran into something weird the other day, but I'm not sure if it's a bug or not
since I'm a bit new to bash shell scripting. Basically I have a script that
has structure like this:
set -e
trap "cat $LOGFILE" ERR
{
foo
bar
baz
} > $LOGFILE 2>&1
If an error happens inside the {} block, it lo
[EMAIL PROTECTED] wrote:
> Bash Version: 3.1
> Patch Level: 11
> Release Status: release
>
> Description:
>
> In other shells (like bash 3.0, bash 2.x, zsh, dash),
>
> for VARIABLE; do ...; done
>
> is equivalent to
>
> for VARIABLE in "$@"; do ...; done
And it is in bash, too. When
G C McNeil-Watson wrote:
> If you do an
>
> ls -ld directory/
>
> for some existing directory then the output contains TWO trailling
> slashes:
>
> drwx-- 2 pypgcm users 4096 Aug 16 2005 directory//
[...]
> and pick out the appopriate entry. I believe this is a bug.
It might be,
Thierry EXCOFFIER wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i486
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
> -DCONF_VENDOR='pc' -DLOCALE
[EMAIL PROTECTED] wrote:
> Help!
>
> Why does this not work?
>
> n=a
> a=( x y z)
> echo "$!n[0]"
> echo "$!n[1]"
> echo "$!n[2]"
>
>
> only value i get is a[0]
First of all, you need the braces. Otherwise you get $!, followed by
n[0], n[1], and n[2], respectively.
Second, once you add the b
>
> If you do an
>
> ls -ld directory/
>
> for some existing directory then the output contains TWO trailling
> slashes:
>
> drwx-- 2 pypgcm users 4096 Aug 16 2005 directory//
>
> I believe this is a bug.
This is not a bash problem, so you should have mailed the
bug-coreutils mailing
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd6.0
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='freebsd6.0' -DCONF_MACHTYPE='i386-unknown-freebsd6.0'
-DCONF_VENDOR='unknown' -DLOCALEDIR='/tmp/bash/share/loc
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd4.11
Compiler: cc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='freebsd4.11' -DCONF_MACHTYPE='i386-portbld-freebsd4.11'
-DCONF_VENDOR='portbld' -DLOCALEDIR='/usr/local/share/
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd4.8
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='freebsd4.8' -DCONF_MACHTYPE='i386-unknown-freebsd4.8'
-DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/local/share/lo
If you do an
ls -ld directory/
for some existing directory then the output contains TWO trailling
slashes:
drwx-- 2 pypgcm users 4096 Aug 16 2005 directory//
The directory and the first slash appear in blue on my terminal, trailing
slash in black. Piping through something else does not
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='b
Help!
Why does this not work?
n=a
a=( x y z)
echo "$!n[0]"
echo "$!n[1]"
echo "$!n[2]"
only value i get is a[0]
___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash
Here is a bug report generated by bashbug.
Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: aix5.2.0.0
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc'
-DCONF_OSTYPE='aix5.2.0.0' -DCONF_MACHTYPE='powerpc-ibm-aix5.2.0.0'
-DCONF_
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='b
Greg Schafer wrote:
> It appears there might be problem with this patch. Here is a test case I
> distilled from the grep-2.5.1a testsuite:
>
> status=`echo '-'| { ${GREP} -E -e 'a\' >/dev/null 2>&1 ; echo $?; }`
>
> Put that line into a file called "myfile" then run like this:
>
> # bash -n myf
Werner Fink wrote:
> BASH PATCH REPORT
> =
>
> Bash-Release: 3.1.5
> Bug-Description:
>
> Lines like
>
>g31:bash-3.0 > x=`echo A B C | sed 's/ /\\
>> /g'`
>g31:bash-3.0 > echo "$x"
>A
>B
>C
>
> do
Nikita Danilov wrote:
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
>
> Description:
> bash 100% reproducibly crashes when trying to do a globbing in a huge
> directory
Thanks. This will be fixed in the next version.
Chet
--
``The lyf so short, the craft so long to
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash
On Fri, Mar 10, 2006 at 04:40:00PM -0500, Chet Ramey wrote:
> Mike Stroyan wrote:
...
> > Remove an extra right parenthesis from bashline.c.
> >
> > --- bash/bashline.c~2006-01-31 13:30:34.0 -0700
> > +++ bash/bashline.c 2006-03-09 12:32:24.0 -0700
> > @@ -800,7 +800,7
[EMAIL PROTECTED] wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: ia64
> OS: linux
> Compiler: gcc -I/usr/src/packages/BUILD/bash-3.1
> -L/usr/src/packages/BUILD/bash-3.1/../readline-5.1
> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='ia64'
> -DCON
> No way to hand echo or /bin/echo a NULL.
You mean NUL, not NULL. And printf can do it.
> $ set a $'\x00' b
> $ echo $#
> 3
> $ echo A$'\x01'B|wc -c
> 4
> $ echo A$'\x00'B|wc -c
> 3
Here, command substitutions strip all NULs from the command's
output. POSIX doesn't specify whether this behavi
Mike Stroyan wrote:
> Bash Version: 3.1
> Patch Level: 0
> Release Status: release
>
> Description:
> The default edit-and-execute-command behavior for non-posix vi
> editing mode fails when EDITOR is not set. It has changed from
> using vi in 3.0 to trying to use 'editor' firs
Configuration Information [Automatically generated, do not change]:
Machine: ia64
OS: linux
Compiler: gcc -I/usr/src/packages/BUILD/bash-3.1
-L/usr/src/packages/BUILD/bash-3.1/../readline-5.1
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='ia64'
-DCONF_OSTYPE='linux' -DCONF_MACHTYPE='ia64-
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKA
Dan Jacobson <[EMAIL PROTECTED]> wrote:
> No way to hand echo or /bin/echo a NULL.
For /bin/echo, that's because execve() uses null-terminated strings.
For bash's builtin echo, it could be done, but then it would be
inconsistent with external commands, which might be surprising.
paul
_
No way to hand echo or /bin/echo a NULL.
$ set a $'\x00' b
$ echo $#
3
$ echo A$'\x01'B|wc -c
4
$ echo A$'\x00'B|wc -c
3
$ echo -n `echo -ne 000`|wc -c
0
BASH_VERSION='3.1.0(1)-release'
At least the echo docs should say so.
___
Bug-bash mailing lis
28 matches
Mail list logo