What is the difference between a newline and a semi-colon?

2014-05-30 Thread Bruce Korb
$ . xx ; cat xx ; proj ; pwd ; pwd -P alias proj=cd ~/'google drive'/web bash: proj: command not found /home/sciadmin/tmp /home/sciadmin/tmp $ . xx $ cat xx ; proj ; pwd ; pwd -P alias proj=cd ~/'google drive'/web /home/sciadmin/google drive/web

Re: What is the difference between a newline and a semi-colon?

2014-05-30 Thread Bruce Korb
Thanks, Eric Chet. I hope nobody ever needs to load up a set of aliases within a Makefile script. There's no compelling need in my mind, but there's also apparently no possible way, either. Yummy.

suggested doc patch for shopt -o

2013-07-13 Thread Bruce Korb
$ diff -u bash.1 bash-new.1 --- bash.1 2013-07-13 08:55:41.312334646 -0700 +++ bash-new.1 2013-07-13 09:26:15.088438456 -0700 @@ -8820,11 +8820,16 @@ or less than zero; otherwise 0. .TP \fBshopt\fP [\fB\-pqsu\fP] [\fB\-o\fP] [\fIoptname\fP ...] -Toggle the values of variables controlling

Re: Is this intended behavior??

2013-02-13 Thread Bruce Korb
Hi, On Wed, Feb 13, 2013 at 9:01 AM, Chet Ramey chet.ra...@case.edu wrote: On 2/11/13 2:25 PM, Bruce Korb wrote: [...] /tmp/ZZ/a/b/c /tmp/ZZ/a /tmp/ZZ /tmp/ZZ/a/b/c $ popd /var/tmp /tmp/ZZ/a/b/c /tmp/ZZ/a /tmp/ZZ/a/b/c $ It is behaving as if it were seeing the -0 option. It's

Is this intended behavior??

2013-02-11 Thread Bruce Korb
/tmp $ echo $PS1 \w\n\$ /tmp $ mkdir -p ZZ/a/b/c /tmp $ pushd ZZ /tmp/ZZ /tmp /tmp/ZZ $ pushd a /tmp/ZZ/a /tmp/ZZ /tmp /tmp/ZZ/a $ pushd b/c /tmp/ZZ/a/b/c /tmp/ZZ/a /tmp/ZZ /tmp /tmp/ZZ/a/b/c $ popd /var/tmp /tmp/ZZ/a/b/c /tmp/ZZ/a /tmp/ZZ /tmp/ZZ/a/b/c $ popd /var/tmp

Why does BASH delay printing capitol 'T'

2012-02-13 Thread Bruce Korb
It is very disconcerting and makes me want to press it an extra time. This is new behavior. Thanks.

Re: Why does BASH delay printing capitol 'T'

2012-02-13 Thread Bruce Korb
Hi Eric, On Mon, Feb 13, 2012 at 2:56 PM, Eric Blake ebl...@redhat.com wrote: On 02/13/2012 03:50 PM, Bruce Korb wrote: It is very disconcerting and makes me want to press it an extra time. This is new behavior.  Thanks. It works fine for me.  Most likely, you have a bug in your ~/.inputrc

tab completion bug

2012-02-04 Thread Bruce Korb
Hi, In my home directory, I typed, emacs $PWD/ag/git-ag/autoopts/tpl/ag and pressed tab. The command line was rewritten thus: emacs \$PWD/ag/git-ag/autoopts/tpl/agtexi-cmd.tpl That seemed to be what I wanted, but when emacs came up, the file was:

Re: ';' redirection operator [was: [1003.1(2008)/Issue 7 0000530]: Support in-place editing in sed (-iEXTENSION)]

2011-12-22 Thread Bruce Korb
On 12/22/11 13:03, Eric Blake wrote: I assume on the ksh implementation that the temp file is discarded if the command (simple or compound) feeding the redirection failed? One would hope! If the redirection is used on a simple command, is there any shorthand for specifying that the

New flag option request

2011-10-20 Thread Bruce Korb
You may have this in the queue already, but just in case: POSIX now specifies that if a standard utility has extended options, then you accomplish it with ``-W option-name[=opt-arg]''. I wouldn't care, but I wanted to add ``--noprofile --norc'' to the command line and, for debugging purposes, I

Re: New flag option request

2011-10-20 Thread Bruce Korb
On 10/20/11 08:12, Chet Ramey wrote: On 10/20/11 10:48 AM, Bruce Korb wrote: You may have this in the queue already, but just in case: POSIX now specifies that if a standard utility has extended options, then you accomplish it with ``-W option-name[=opt-arg]''. That's not actually published

Re: Yet Another test option

2011-07-06 Thread Bruce Korb
On 07/06/11 10:19, Eric Blake wrote: Oh, that's rather heavyweight - a command substitution and 3 pipeline components. Why not just one child process, by using sort -c and a heredoc? is_eq=false is_lt=false if test x$1 = $x2; then is_eq=true elif sort -cVEOF 2/dev/null; then $1 $2 EOF

Re: Yet Another test option

2011-07-05 Thread Bruce Korb
Hi Greg, On Tue, Jul 5, 2011 at 5:20 AM, Greg Wooledge wool...@eeg.ccf.org wrote: The comment implies [2-6] but [0-6] is probably a safer bet, just in case someone backported the driver to an older kernel. The code, itself, matched anything with a kernel version in the 20+something version,

Re: Yet Another test option

2011-07-03 Thread Bruce Korb
Hi Chet, On Sun, Jul 3, 2011 at 11:21 AM, Chet Ramey chet.ra...@case.edu wrote: On 7/2/11 3:49 PM, Bruce Korb wrote: Hi Chet, et al., Given that sort(1GNU) now has a sort-by-version-ordering (sort -V), it would seem reasonable to do version comparisons without having to do a series of fork

Yet Another test option

2011-07-02 Thread Bruce Korb
Hi Chet, et al., Given that sort(1GNU) now has a sort-by-version-ordering (sort -V), it would seem reasonable to do version comparisons without having to do a series of fork execs. In other words, abbreviate this: min_os_ver=` printf '2.6.27\n%s\n' $LINUXRELEASE | sort -V | head -1`

Re: history -a

2010-08-14 Thread Bruce Korb
Thanks, Chet. I'll try the patch out as soon as I can get to it. Meanwhile, I've also tried to add in some of the examples/loadables (beyond the tty one), and it makes bash unstable. I will also try to put together a patch that will run through the examples directory on make check. I am pretty

history -a

2010-08-09 Thread Bruce Korb
My history file isn't being updated as I am led to believe it ought to be. Is there some shopt or other thingey that keeps the history unwritten? I've googled the issue and the answer is supposed to be history -a, on occasion, but that isn't working: $ ls -l $HISTFILE;history;history -a;ls -l

Re: BASH ignores language for command completion

2010-07-15 Thread Bruce Korb
On Thu, Jul 15, 2010 at 5:36 AM, Chet Ramey chet.ra...@case.edu wrote: On 7/15/10 8:19 AM, Andreas Schwab wrote: Chet Ramey chet.ra...@case.edu writes: If en_US happens to be the system's default locale, of course.  You can only be sure that you'll get ASCII sorting order if you set LANG=C.

Re: BASH ignores language for command completion

2010-07-15 Thread Bruce Korb
Hi Greg, On Thu, Jul 15, 2010 at 8:42 AM, Greg Wooledge wool...@eeg.ccf.org wrote: On Thu, Jul 15, 2010 at 08:06:20AM -0700, Bruce Korb wrote: So, for future reference, put this in my bashrc? eval $(locale | sed 's/=.*/=C/;s/^/export /') Gah!  That's ludicrous. That, actually, is part

BASH ignores language for command completion

2010-07-14 Thread Bruce Korb
I've stripped all LC_* variables plus LANG from my environment: $ env|fgrep LANG $ env|fgrep LC_ $ Command completion still used EN_us for sorting directories in command completion. e.g.: $ cd .adobe/ .gtkrc-1.2-gnome2.profile .altera.quartus/ .hist/

file name completion

2007-07-23 Thread Bruce Korb
Hi, I do not know if this is an obsolete feature or not, but using GNU bash, version 2.05b.0(1)-release I can press TAB and get file name completion on arguments like ``*abc'' when there is only one file ending in ``abc''. With my version at home GNU bash, version 3.1.17(1)-release I have not

Re: file name completion

2007-07-23 Thread Bruce Korb
Chet Ramey wrote: I do not know if this is an obsolete feature or not, but using GNU bash, version 2.05b.0(1)-release I can press TAB and get file name completion on arguments like ``*abc'' when there is only one file ending in ``abc''. With my version at home GNU bash, version

one last collating sequence data point

2007-01-27 Thread Bruce Korb
In the listings below, two programs are involved: ls and bash. I am inclined to believe that bash treats a missing LC_COLLATE as en_US and ls treats it as C. If there is such a thing as an invisible (not in environment variables) system default locale, then ls is wrong, otherwise bash is wrong.

Re: nocaseglob

2007-01-23 Thread Bruce Korb
Chet Ramey wrote: This shows the collating sequence for alphabetics in the en_US locale. (Since I don't set LC_ALL anywhere in my startup files, my system's default locale is apparently en_US.UTF-8.) Is _that_ the deal, then? There is such a thing as a system default locale that does not

Re: nocaseglob

2007-01-23 Thread Bruce Korb
Chet Ramey wrote: Chet Ramey wrote: (Since I don't set LC_ALL anywhere in my startup files, my system's default locale is apparently en_US.UTF-8.) Even if you don't actively set the LANG, LC_COLLATE, LC_ALL locale variables in your shell startup files they may be getting set in your

Re: nocaseglob

2007-01-22 Thread Bruce Korb
On 1/20/07, Bob Proulx [EMAIL PROTECTED] wrote: I think you have the nocaseglob right. I think this is a variable set but not exported problem. Just guessing though. Excellent guess. No cigar, tho: $ echo [a-z]* bin bk-archives Bugzilla core cron Desktop [[...]] $ LC_COLLATE=C echo [a-z]*

nocaseglob

2007-01-20 Thread Bruce Korb
Hi, This cannot have been overseen, so perhaps I am not understanding how nocaseglob is supposed to work: $ bash --version GNU bash, version 3.1.17(1)-release (i586-suse-linux) Copyright (C) 2005 Free Software Foundation, Inc. $ shopt|fgrep caseglob nocaseglob off $ echo

Re: nocaseglob

2007-01-20 Thread Bruce Korb
Andreas Schwab wrote: Bruce Korb [EMAIL PROTECTED] writes: $ echo tpdsrc/umod/nodesvr/test/[a-z]* tpdsrc/umod/nodesvr/test/Makefile tpdsrc/umod/nodesvr/test/SCCS tpdsrc/umod/node What are the Makefile and SCCS entries doing on the line? Please read the Bash FAQ, Question E9. I did

Re: Can I get a hint, please?

2006-10-07 Thread Bruce Korb
http://lists.gnu.org/archive/html/bug-bash/2006-09/msg00068.html I gave it a quick try on Red Hat linux with the bash-3.2 release candidate, and ran `echo $MYPID' about 15 times without error. Chet Hi Chet, Cool. I'll have to get the up-to-date bash and give it a try. That's a problem

process id's in a world of cooperating subshells

2006-09-19 Thread Bruce Korb
Hi, As far as I am able to tell, there is no well-known way to ascertain the current pid of a subshell. You can write programs that return their parent's pid, but that is pretty hacky. So, I dug through some sketchy docs and examples about rolling your own built in BASH commands and came up