Re: variables set on command line

2011-08-24 Thread Sam Steingold
gs='${CFLAGS}' \ soname='$dll' lib='$lib' output_objdir='$dyndir' \ eval XCC_CREATESHARED=\"${archive_cmds}\" CC=$CC_save however, this does not distinguish between unset CC and CC=''. (is there a way to distinguish these two si

variables set on command line

2011-08-24 Thread Sam Steingold
)-release (i686-pc-cygwin) is this the expected behavior? thanks. -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://palestinefacts.org http://openvotingconsortium.org http://memri.org http://www.PetitionOnline.com/tap12009/ http://dhimmi.com He who laughs last thinks slowest.

Re: conditional aliases are broken

2011-08-18 Thread Sam Steingold
> * Eric Blake [2011-08-15 16:59:29 -0600]: > > On 08/15/2011 04:40 PM, Sam Steingold wrote: >>> * Andreas Schwab [2011-08-15 22:04:04 +0200]: >>> >>> Sam Steingold writes: >>> >>>> Cool. Now, what does this imply? >>> >

Re: conditional aliases are broken

2011-08-15 Thread Sam Steingold
> * Andreas Schwab [2011-08-15 22:04:04 +0200]: > > Sam Steingold writes: > >> Cool. Now, what does this imply? > >"For almost every purpose, shell functions are preferred over aliases." so, how do I write alias a=b as a function? (remember that argumen

Re: conditional aliases are broken

2011-08-15 Thread Sam Steingold
> * Andreas Schwab [2011-08-15 18:42:30 +0200]: > > Sam Steingold writes: > >> this works: >> >> $ alias z='echo a' >> $ zz(){ z b; } >> $ zz >> a b >> >> however, after sourcing this file: >> if true; then >>

conditional aliases are broken

2011-08-15 Thread Sam Steingold
z, and z is defined as an alias, but zz does not know what z is an alias. -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://pmw.org.il http://dhimmi.com http://ffii.org http://palestinefacts.org http://iris.org.il http://mideasttruth.com http://memri.o

Re: test -nt not sane

2011-08-10 Thread Sam Steingold
> * Curtis Doty [2011-08-10 11:53:52 -0700]: > > They have identical mtimes (as set by touch)--i.e. the directory is > *not* newer than the symlink--but it still outputs "yes". Why? mtime for a symlink comes from stat(), not stat(). anything is newer than a non-exi

delete matching entries from history

2011-08-03 Thread Sam Steingold
how do I delete matching entries from bash history? every other line in the file is "#time" so I cannot use the simple grep. -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://dhimmi.com http://camera.org http://memri.org http://thereligiono

Re: A Feature Request for History

2011-08-03 Thread Sam Steingold
> * Sam Steingold [2011-08-03 11:12:42 -0400]: > > here is my current top: > > 29475 sds 25 0 240m 171m 1344 R 100.1 1.4 15:58.20 bash > 10482 sds 25 0 231m 162m 1336 R 100.1 1.4 16:24.99 bash > 24588 sds 25 0 230m 161m 1340 R 99.7 1.3 13:2

Re: A Feature Request for History

2011-08-03 Thread Sam Steingold
0x0041b4ef in parse_command () #14 0x0041b5c6 in read_command () #15 0x0041b74e in reader_loop () #16 0x0041b2aa in main () (gdb) (same tree for all of them!) also, is there some internal bash locking which would prevent different bash processes from writing history at the s

how to keep newlines in ``

2009-08-26 Thread Sam Steingold
this: foo=`ls` echo $foo will print files in one line even though ls prints them with newlines. is there a way to preserve newlines in the above echo? thanks.

how to get out of the vi editing mode

2009-06-23 Thread Sam Steingold
I hit something by accident and command line editing no longer works. (I think I switched to the vi mode). 1. how do I get back to the emacs mode? (aka what did I hit?!) 2. how do I disable vi mode forever and ever (short of recompiling bash myself)? thanks. -- Sam Steingold (http

readline/history cvs?

2008-08-01 Thread Sam Steingold
Where is the readline/history cvs (or git or whatever) repository? to keep the clisp readline module up to date with the current readline/history releases, I would like to be able to get a diff between readline.h & history.h from readline 5.0 and readline 5.2. how do I get those diffs (without

Re: time command

2008-06-30 Thread Sam Steingold
Chuck Swiger wrote: On Jun 24, 2008, at 7:47 AM, Sam Steingold wrote: I would like all long-running commands to be auto-timed. i.e., all commands I type at the prompt should be run as if with "time" built-in, but if the real or user time is smaller than some value (specified by the

Re: time command

2008-06-24 Thread Sam Steingold
Francis Litterio wrote: Eric Blake wrote: According to Yu Cha Yung on 6/23/2008 12:24 AM: |time ls > time.txt |It doesnt show the information of time in time.txt. That's because in bash, time is a reserved word, and because time's output goes to stderr, not stdout. [...] \time ls >

rfe: auto-timing

2007-12-11 Thread Sam Steingold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I would like all long-running commands to be auto-timed. i.e., all commands I type at the prompt should be run as if with "time" built-in, but if the real or user time is smaller than some value (specified by the user in an environment variable), the t

Re: sigsegv in rl_resize_terminal

2005-10-16 Thread Sam Steingold
> * Chet Ramey <[EMAIL PROTECTED]> [2005-10-16 22:38:38 -0400]: > > Sam Steingold wrote: >>>* Chet Ramey <[EMAIL PROTECTED]> [2005-10-16 17:53:39 -0400]: >>> >>>Sam Steingold wrote: > >> >> is there a way to check whether readl

Re: sigsegv in rl_resize_terminal

2005-10-16 Thread Sam Steingold
> * Chet Ramey <[EMAIL PROTECTED]> [2005-10-16 17:53:39 -0400]: > > Sam Steingold wrote: >> I get this: >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x2821e472 in rl_resize_terminal () from /usr/lib/libreadline.so.4 >> >> (Fre

sigsegv in rl_resize_terminal

2005-10-16 Thread Sam Steingold
rules for invoking rl_resize_terminal? do I need to call rl_initialize() or readline() before rl_resize_terminal? -- Sam Steingold (http://www.podval.org/~sds) running w2k <http://www.palestinefacts.org/> <http://www.savegushkatif.org> <http://www.openvotingconsortium.org/> <

readline & signals

2005-10-14 Thread Sam Steingold
#x27;(unwind-protect (sleep 100) (print "cleanup"))' & $ kill %1 Exiting on signal 15 "cleanup" Bye. $ we do not call rl_set_signals() (we need to handle most signals ourselves). we do call rl_resize_terminal() from our own sigwinch handler. so, what are we doing wro