Re: GNU bash, 3.00.15(1)-release, referenced cmd in cwd executes alternate cmd

2007-01-05 Thread Eric Blake
es on either. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozde

Re: Quotes problem ?

2007-01-10 Thread Eric Blake
t by running d2u on it. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] volunteer bash port maintainer for cygwin -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Co

Re: Function/alias recursion

2007-01-16 Thread Eric Blake
ect you from yourself (or put differently, the halting problem is undecidable). - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~e

Re: Did I find a Bug in /bin/ls or in bash?

2007-02-06 Thread Eric Blake
but is due to your choice of locale, and its choice of collating sequences. Try exporting LC_ALL=C to see the difference. > coreutils-6.4-10 > bash-3.1-55 Consider upgrading. coreutils is at 6.7, and bash at 3.2. - -- Don't work too hard, make some time for fun as well! Eric Blak

Re: I can`t complete ./configure command

2007-03-08 Thread Eric Blake
led on your HP. Did configure run to completion? If not, what is your real problem? - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake

Re: source(builtin) and read(2)

2007-03-23 Thread Eric Blake
its in ssize_t. Again, if your ssize_t is smaller than 32 bits, your platform has other issues. Just because POSIX allows ssize_t to be as small as 16 bits doesn't mean many modern platforms do that. - -- Don't work too hard, make some time for fun as well! Eric Blake

Re: source(builtin) and read(2)

2007-03-23 Thread Eric Blake
mitations before it is possible to exceed the SSIZE_MAX limitation. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast

Re: how does bash parse back-ticks, anyway?

2007-04-02 Thread Eric Blake
you have to additionally escape $, `, ", \, and newline to account for the added level of "" parsing. It is this additional level of escaping which applies only to `` that makes "``" hard to parse, and which does not apply to $() parsing. And as the autoconf manual doc

Re: inconsistent output for cd

2007-04-03 Thread Eric Blake
into account. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://en

Re: inconsistent output for cd

2007-04-04 Thread Eric Blake
Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mo

readline vs. literal \1 and \2

2007-04-04 Thread Eric Blake
ther than the current behavior of treating it as a synonym for PS1='\['? -- Eric Blake ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: strange expansion of <(cat p.main.{optional,extra})

2007-04-18 Thread Eric Blake
ed, and there was no syntax error. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozi

Re: inconsistent output for cd

2007-04-26 Thread Eric Blake
Eric Blake byu.net> writes: > > Curiously, under the same conditions on a Red Hat Linux box: > > Why didn't you say so in the first place? If this behavior only occurs on > cygwin, then it is a bug in either cygwin or the bash port of cygwin, and > you should have

Re: Bash-3.2 Official Patch 16

2007-05-01 Thread Eric Blake
ru.edu/pub/bash/bash-3.2-patches but not ftp://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches, even though the corresponding readline patches are on both sites? - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version:

Re: Bash is broken

2007-05-13 Thread Eric Blake
ctually, when quoted properly, it should be a numeric comparison, not a string comparison. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~eri

Re: bash for loop errorr

2007-05-23 Thread Eric Blake
s now at 3.2, and has several new features and bug fixes above what 2.03 or even 3.0 had. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~eri

Re: bug in printf bash command

2007-07-21 Thread Eric Blake
: 09: value not completely converted It is bash's printf which could be improved, so I'm forwarding this to the bug-bash list. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5

Re: deleting coma in a large number of files

2007-07-21 Thread Eric Blake
e - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozi

Re: variables

2007-07-30 Thread Eric Blake
As written, you are invoking toto.conf.sh independently, in its own shell environment. If you want toto.conf.sh to affect the current environment, you need to source it - look at the documentation for '.' (also known as 'source'). - -- Don't work too hard, make some time for f

Re: automate input

2007-08-09 Thread Eric Blake
That's because the enter key is not $'\r', but $'\n' (or more simply, a blank line inside your heredoc). - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) C

Re: short-circuit test ... -a ...

2007-08-23 Thread Eric Blake
re than 4 arguments (you had 7) is unspecified. So there is no compelling reason to change the current behavior. If you want short-circuiting, do this instead: x=; test "$x" != "" && test "$x" -le 60 - -- Don't work too hard, make some time for fun as w

Re: Readline-5.2 Official Patch 7

2007-08-24 Thread Eric Blake
s one ... bash32-025 has been present on the ftp sites since the 22nd. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg

Re: TAB strips wildcards

2007-08-29 Thread Eric Blake
Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - h

Re: RFE: brace expansion sequences should do zero padding

2007-09-03 Thread Eric Blake
are so rare that they are not worth the effort. > Do you agree? Perhaps rather than trying to improve bash {} expansion, you could use coreutils seq instead. For example, $ seq -f 'a/%03g' -007 003 a/-07 a/-06 a/-05 a/-04 a/-03 a/-02 a/-01 a/000 a/001 a/002 a/003 - -- Don't work

Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed

2007-09-09 Thread Eric Blake
I raised this very bug several months ago: http://lists.gnu.org/archive/html/bug-bash/2007-04/msg00070.html where the cd builtin has the same issue. I also proposed several approaches for fixing the issue. - -- Don't work too hard, make some time for fun as well! Eric Blake

Re: Problems with redirection of output to files through shell scripts

2007-09-11 Thread Eric Blake
, named after the stty option, that makes bash ignore all carriage returns on input, when enabled. Is there any interest in having that option on all platforms, rather than just Cygwin? If so, I will try to clean up the patch and post it here. - -- Don't work too hard, make some time for fun

Re: -d option not working. . .?

2007-09-12 Thread Eric Blake
words: history and POSIX. It's been done that way for more than 20 years, so it was standardized that way. Changing it would break too many existing scripts. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE---

Re: bash should retry a fork() returning EAGAIN

2007-09-18 Thread Eric Blake
t; > Might be worth checking with the Cygwin folks, but this sounds like it > would be useful in Cygwin also. (IIRC, this problem is why I dropped SUA > for Cygwin in the first place, i.e. in SUA the problem was much worse.) > > Eric, are you watching this? :-) It does look like

Re: Bash Prompt location

2007-09-21 Thread Eric Blake
//www.termsys.demon.co.uk/vtansi.htm, PS1='\[\e[20;5H\]> ' will output "> " at row 20 line 5, rather than the current position. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v

Re: Bash with Dos File problem

2007-09-23 Thread Eric Blake
purious \r in your files. That said, however, you may want to upgrade, since cygwin now ships with bash 3.2.25. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key

Re: using NUL in scripts

2007-09-26 Thread Eric Blake
quot;new-file" will be exactly "binary-file" if all NUL bytes are stripped out POSIX is silent on the matter. zsh preserves NUL in command substitution, bash strips them out. Perhaps it is worth raising the issue with the Austin group for clarification. - -- Don't work too

Re: CDPATH bug

2007-10-01 Thread Eric Blake
acter, and the operand." - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericbla

Re: error with ' in command substitution

2007-10-30 Thread Eric Blake
o 3.2). - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

Re: how could I execute a set of script in a directoy tree?

2007-11-17 Thread Eric Blake
ut here, you want it to be an argument to find. Read the find documentation for more about why -execdir requires a literal ; to end the sequence. You could also have quoted it as '\' or "\\", but that is more typing. - -- Don't work too hard, make some time for fun as well!

Re: echo(1) non-conformant (processing -e and -E)

2007-11-26 Thread Eric Blake
ng printf(1) instead of echo(1). - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla

Re: nonconformant behavior for printf(1) (you cannot interpret - as an option char)

2007-11-26 Thread Eric Blake
guments, as in: $ printf -- ---%s---\\n test - ---test--- If your non-builtin system printf behaves differently, that is a bug in your system printf. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuP

Re: nonconformant behavior for printf(1) (you cannot interpret - as an option char)

2007-11-26 Thread Eric Blake
o print with a format string starting with a hyphen, because the -- is required to be interpreted as the end of options, and not as the format string. The format string is not an option, so it is the first word after the end-of-options designator, or ---%s---\\n. - -- Don't work too hard, ma

Re: nonconformant behavior for printf(1) (you cannot interpret - as an option char)

2007-11-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Rich Felker on 11/26/2007 10:02 PM: > On Mon, Nov 26, 2007 at 09:54:52PM -0700, Eric Blake wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Please keep replies on the list,

Re: nonconformant behavior for printf(1) (you cannot interpret - as an option char)

2007-11-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 11/26/2007 10:09 PM: >> Again, go read POSIX and if you're still unclear file a RFI. But it's >> very clear and bash is incorrect in this respect. > > I'm on the Austin group, and feel quite

Re: Tilde expandion for values of long options

2007-12-08 Thread Eric Blake
ning behind this is that ~ already represents a single path name, so it should not be further expanded. However, bash 3.2 does not obey this rule (it avoids field splitting, but mistakenly performs pathname expansion if $HOME contains glob characters). - -- Don't work too hard, make some time

Re: Dubious parse in builtin 'test' command

2007-12-09 Thread Eric Blake
austin/interps/uploads/40/10043/AI-107.txt Therefore, I see no bug in bash, even though it differs from coreutils in its interpretation of 'test ! -a file'. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE--

Re: bash-shipped getcwd() replacement does not work on interix.

2007-12-20 Thread Eric Blake
placement for getcwd, to see how it handles the problem: http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/getcwd.c - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Commen

Re: bash incompatible with sh,maybe this is a bug

2007-12-25 Thread Eric Blake
ened to pick an example that POSIX doesn't nail down, and which is therefore unportable and should not be used. Not to mention that [ $test1 -a $test2 ] is an XSI extension, so your shell need not support it to begin with. -- Eric Blake

Re: stdio buffer flushing on redirection

2008-01-06 Thread Eric Blake
purge, with mode chosen correctly based on whether the underlying stream is in append mode, but that is equally unportable to other platforms. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4

Re: Is there a Windows native port of Bash or Bourne Shell(no cygwin)?

2008-01-28 Thread Eric Blake
esn't work on vista yet, then they would probably welcome your help. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblak

Re: bash 2.05b.0(1)-release on Debian Sarge: [A-Z]* expands as [A-Za-z]* :-(

2008-01-28 Thread Eric Blake
current locale, which does a collation sort. You aren't doing [A-Za-z], but [AaBb...Z], because your current locale prefers case-insensitive collation. Change your locale (try LC_COLLATE=C or LC_ALL=C) to see the difference. - -- Don't work too hard, make some time for fun as well!

Re: testsuite -C dir

2008-01-29 Thread Eric Blake
and `source' builtins do not search the current directory ~ for the filename argument if it is not found by searching `PATH'. It looks like we've discovered a bash bug. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -B

Re: problems substituting 'jobs' in a bash script

2008-02-21 Thread Eric Blake
ading this link, especially under Application Usage http://www.opengroup.org/onlinepubs/009695399/utilities/jobs.html - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Pub

Re: error in expression evaluation

2008-02-22 Thread Eric Blake
n would be more portable as: [ a != b ] && [ x'(' != x, ] | Fix: | Workaround: don't use a compound expression, Yes - that is the only portable way to use [. | use a second if-statement within | the first if-statement. Or use && between two invocations of test. -

Re: SEGV on unbounded recursion

2008-03-06 Thread Eric Blake
or making stack overflow detection result in nicer output than a crash. http://www.gnu.org/software/libsigsegv/ - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key

Re: style of assignment to variable changes command selection

2008-03-07 Thread Eric Blake
- -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http:/

Re: style of assignment to variable changes command selection

2008-03-07 Thread Eric Blake
er the section RESERVED WORDS. Also, 'help time' gives evidence that it is special to bash (as 'help' is the bash builtin that reports about both reserved words and builtins). | | | Doug McIlroy | (Editor of Unix manuals, editions 7-10) | - -- Don't work too hard

Fwd: Problem with bash completion

2008-03-12 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This was originally reported on the cygwin lists; it is still present in stock bash 3.2.33. - - From: David Rothenberger Subject: Problem with bash completion Sometimes bash gets confused and starts adding a slash at the end of files when I do

Re: cp and mv commands (copying/moving only if file does not exist, regardless of the time stamps, for use in a automatic script)

2008-03-27 Thread Eric Blake
ompt are pretty hairy). ~ At any rate, I suggest looking into rsync, which can do exactly what you want and more. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Cygwin) Comment: Public key

Re: shorthand attempt at 'basename file .ext'

2008-03-28 Thread Eric Blake
print '-a', not '--'. Also, on platforms where // is special (such as cygwin), 'basename //' and 'basename // /' should print '//', not '/', to match the behavior of the basename program on those platforms. -- Eric Blake

Re: shorthand attempt at 'basename file .ext'

2008-03-29 Thread Eric Blake
if you choose to preserve "//" even though it is not special, then you skip steps 3-6, so you don't do any suffix stripping from step 6, and the result is "//". Either way, "basename // /" doesn't do any suffix stripping (for that matter, NO suffix that c

Re: problems with output redirection

2008-04-03 Thread Eric Blake
s that start with whitespace, to guarantee that the whitespace is preserved. A GnuPG-aware client is supposed to strip the ~. ~ However, in my opinion, not one of the smartest actions of Enigmail. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAI

Re: Bash unexpected directory prompting

2008-04-12 Thread Eric Blake
en bash is used to | execute scripts and it is not in an interactive mode. What is CDPATH set to? - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast

Re: Bash unexpected directory prompting

2008-04-12 Thread Eric Blake
un as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgA694ACgkQ84KuGfSFAYCsvwCfQDfGznAc92tuDo

Re: Bash messes up spaces in command line agruments.

2008-05-06 Thread Eric Blake
lly want something like: ~ echo "$index |$(eval echo \"\${$index}\")|" Or more efficiently: ~ eval 'echo "$index |$'"$index"'|"' - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTEC

Re: builtin printf not printing unicode characters?

2008-05-12 Thread Eric Blake
rg/archive/html/bug-coreutils/2008-05/msg00067.html - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using Gnu

Re: A wonderful idea about shell!

2008-05-17 Thread Eric Blake
having to cycle through every single recent command with the 'up' and 'down' arrows. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comc

Re: Bash enhancement request

2008-05-19 Thread Eric Blake
x27;t work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozde

Re: Operator || disables set -e in subshells: Bug or feature?

2008-05-19 Thread Eric Blake
ubshell is exempt. If you need more clarification, I would ask on the Austin Group mailing list if this ambiguity was intended. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Com

heredoc in command subst bug?

2008-05-29 Thread Eric Blake
I'm not sure whether this is a bug in POSIX or in bash, but I noticed the following with bash-3.2.39. $ bash -c 'foo=$(cat

Re: bash using incorrect block size with limits

2008-06-02 Thread Eric Blake
this, I think this is an appropriate place to make the code conditional on whether bash is emulating posix rather than hard-coded. People just don't think conveniently in terms of the older 512b block sizes. - -- Don't work too hard, make some time for fun as well! Eric Blake

Re: top level configure from autoconf 2.59 looses --quiet

2008-06-02 Thread Eric Blake
that you wouldn't have to rerun autoconf; but as configure is a generated file, the cygwin patch is much smaller by excluding it from the diff. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] volunteer maintainer of cygwin port of bash

Re: [POSIX conformance] "." looks for file in the current directory

2008-06-10 Thread Eric Blake
echo $foo $bar hello world - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozi

Re: time command

2008-06-23 Thread Eric Blake
me' to see this). - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment:

Re: some variable level issues

2008-06-29 Thread Eric Blake
nce, with my > benchmarks, > it is hundreds of times slower than ".=" in perl. Thoughts? It's much faster than the alternative of "=". -- Eric Blake

Re: SHELL Bash variable

2008-07-17 Thread Eric Blake
L'. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozill

Re: "[EMAIL PROTECTED]" strings in the web archive

2008-07-18 Thread Eric Blake
the same message at: http://www.nabble.com/forum/Permalink.jtp?root=18519745&post=18527669&page=y - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.

Re: "[EMAIL PROTECTED]" strings in the web archive

2008-07-18 Thread Eric Blake
t I agree hands down that gmane's posting ability is better than nabble's. Still, I wish there were a web posting site that allowed cross-posting, even if only to a thread that were already cross-posted. - -- Don't work too hard, make some time for fun as well! Eric Blake

Re: bash: request for a way to return variables to the parent of a subshell

2008-07-22 Thread Eric Blake
eally isn't a way to pass arbitrary information from a child process back to the parent. But maybe the 'source' builtin is what you are looking for, to execute a script in the same context rather than forking off a child. - -- Don't work too hard, make some time for fun as well!

Re: timeout

2008-07-28 Thread Eric Blake
You may be interested to know that the next coreutils release (post 6.12, currently slated to be named coreutils 7.0) will include a timeout command. You can search the bug-coreutils archives for links to snapshots that already have this command available to replace the version dropped in your distro. -- Eric Blake

Re: CDPATH reports to stdout and even non-interactively

2008-08-15 Thread Eric Blake
unt. And in general, it is a bad idea to export CDPATH. Using it in interactive shells as a non-environment shell variable is fine, but exporting it affects non-interactive shells. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BE

Re: Maximum limit of pipes in a single command ?

2008-08-28 Thread Eric Blake
ced parser limit. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://e

Re: lost output from asynchronous lists

2008-10-29 Thread Eric Blake
x27;s the ":;" for? A workaround to the bash 3.2 bug, fixed in bash32-030, where failure to use :; prior to a compound command (except for a subshell) meant that bash incorrectly returns status 0 if redirection fails. - -- Don't work too hard, make some time

Re: lost output from asynchronous lists

2008-10-29 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 10/29/2008 6:22 AM: >>> - ( :; $1 ) >"$at_stdout" 2>"$at_stderr" >>> + : >"$at_stderr" >>> + ( :; $1 ) >>"$at_stdout" 2>>"$

PIPESTATUS not altered by $(())

2008-11-16 Thread Eric Blake
ons where the latter is not properly updated. In the example below, a failed arithmetic substitution sets $? but not $PIPESTATUS. Repeat-By: $ PS1=' ${PIPESTATUS[*]} \$ ' 0 $ echo $? 0 0 $ echo $((+)) bash: +: syntax error: operand expected (error token is "+")

case insensitive completion and _

2008-12-01 Thread Eric Blake
(just type a, -, ). Any chance readline 6.0 can offer a configuration parameter for this ability? - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.c

readline filename completion and dirent.d_type

2008-12-05 Thread Eric Blake
used to avoid a large number of stat calls, giving faster completion performance (particularly on filesystems where stat is slow). Any thoughts on whether this sounds worthwhile, or what the new API names should look like? -- Eric Blake

Re: problem with echoing script variable to gpg

2008-12-18 Thread Eric Blake
riables work. You want: digest=$( echo -n "$1" | gpg --print-md sha1 ) echo "$digest" - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comc

Re: wrong lineno inside trap?

2009-01-09 Thread Eric Blake
#Special-Shell-Variables and this update to the documentation source, detailing even more inconsistencies: http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=10d26aa - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN P

Re: if, -n

2009-01-31 Thread Eric Blake
y one argument ("-n"), and it is not empty, it is true. You meant to use quotes, to guarantee that there are two arguments, as in: if [ -n "$variable" ]; then echo true; fi - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BE

Re: No tilde expansion right after a quotation

2009-02-15 Thread Eric Blake
these two constructs: foo="`echo "a b"`" bar=`echo "a b"` only the setting of bar is guaranteed to parse correctly in all shells. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SIGNATURE- Version

Re: Help: Bash script that show you the last file created?

2009-02-16 Thread Eric Blake
't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with

Re: No tilde expansion right after a quotation

2009-02-16 Thread Eric Blake
"` >> >> only the setting of bar is guaranteed to parse correctly in all >> shells. > Eric, thanks for youy replay. If double quotes are not that portable, then > how am I suppose to assign the output from some command to a variable when > the output contains a space?

Re: bash-4.0 regression: negative return values

2009-02-23 Thread Eric Blake
oken that > > $ f(){ return -1; }; f > -bash: return: -1: invalid option > return: usage: return [n] What about 'return -- -1'? - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SIGNATURE- Version: GnuPG v1

Re: bash-4.0 regression: negative return values

2009-02-23 Thread Eric Blake
same argument is worthwhile for exit/return. Although POSIX does not require support for any options, neither does it forbid it. Thus, making 'return -1' behave like 'return 255', as an extension, is still permitted, and in the interest of backwards-compatibility, is probabl

Re: cat.sh issue

2009-03-24 Thread Eric Blake
er than printf %s\\n "$var"? You are correct: echo does not parse -- because of POSIX. And POSIX is also explicit that for portability, you are better off using printf than echo. http://www.opengroup.org/onlinepubs/9699919799/utilities/echo.html - -- Don't work too hard, make som

Re: Misleading syntax in manual

2009-04-08 Thread Eric Blake
ur varints: 'in ;', 'in name... ;', ';', or blank. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake

Re: Misleading syntax in manual

2009-04-08 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 4/8/2009 6:10 AM: > The corresponding link in POSIX 2008 is: > > http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_04 > > although the expository listing in that section is

Re: Misleading syntax in manual

2009-04-08 Thread Eric Blake
ail.tpl?CALLER=index.tpl&source=L&listname=austin-group-l&id=12056 - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Co

Re: how to pass arguments with space inside?

2009-04-10 Thread Eric Blake
spaces' '*' "a'b'c'd" args= for arg do case $arg in *\'*) arg=${arg//\'/"'\\''"} ;; esac args+=" '$arg'" done eval for arg in "$args" \; do echo \"\$arg\"\; done And if you don't want to rely on the bash-specific ${name//pattern/repl} or +=, you can rewrite those with something more portable to other shells. -- Eric Blake

Re: Really minor bug. Curent working directory: "//"

2009-05-29 Thread Eric Blake
ot;or to more > slashes") results in "/" as current working directory. Not a bug. POSIX allows // to be a different directory than /, and on some platforms, such as cygwin, this is actually the case. Therefore, bash is required to be careful of //. - -- Don't work

Re: Bash-4.0 Official Patch 23

2009-06-23 Thread Eric Blake
I noticed that although ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/readline60-003 exists, the canonical ftp://ftp.gnu.org/pub/gnu/readline/readline-6.0-patches/* is missing. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SI

Re: parallel several jobs in bash

2009-07-14 Thread Eric Blake
lt;&6 fi exec 6<&- wait else # Run serially, avoid forks and other potential surprises. for at_group in $at_groups; do at_fn_group_prepare if cd "$at_group_dir" && at_fn_test $at_group &

Re: echo "-e" produces no outputs

2009-07-17 Thread Eric Blake
> and some other inputs, all of which produced no outputs. Instead of using echo (which POSIX itself admits is fraught with portability problems), use printf: printf -- '-e\n' - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu

Re: bash 4: source does not search current dir

2009-07-18 Thread Eric Blake
cified by POSIX: http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#dot You can add . to your PATH (probably smarter at the end, not the beginning) if you want to find scripts without anchoring them with a leading './'. - -- Don't work too hard, make some tim

<    1   2   3   4   5   6   7   >