Re: Broken Termcaps

2017-03-02 Thread Suvayu Ali
On Wed, Mar 01, 2017 at 05:26:49PM -0500, Greg Wooledge wrote: > > On Wed, Mar 01, 2017 at 05:21:08PM -0500, Lfabbro wrote: > > Yes you were right the error comes from PS1... > > I'm sad I have no more the git branch on the prompt... :( > > Now I use: > > ps1="\[\033[01;32m\][\u@\h\[\033[01;37m\]

Re: I think bash logic in a loop like : while [ condition] |read somevar is flawed.

2013-12-30 Thread Suvayu Ali
Hi Chet, On Mon, Dec 30, 2013 at 11:33:43AM -0500, Chet Ramey wrote: > On 12/30/13 11:22 AM, Suvayu Ali wrote: > > Hi, > > > > On Thu, Dec 26, 2013 at 06:22:19PM -0500, Chet Ramey wrote: > >> On 12/25/13, 1:33 AM, Pierre Gaston wrote: > >> > >>>

Re: I think bash logic in a loop like : while [ condition] |read somevar is flawed.

2013-12-30 Thread Suvayu Ali
Hi, On Thu, Dec 26, 2013 at 06:22:19PM -0500, Chet Ramey wrote: > On 12/25/13, 1:33 AM, Pierre Gaston wrote: > > > If I remember correctly, POSIX allows the lastpipe behaviour. > > It does, in its usual fashion: "each command of a multi-command pipeline > is in a subshell environment; as an exte

Re: Bash $@ expansion undocumentedly ignoring '

2012-03-21 Thread suvayu ali
Hello Andreas, On Wed, Mar 21, 2012 at 15:24, Andreas Marschke wrote: > it has come to my attention that bash is unexpectedly removing quotes > from parameters given to a script if read from within the > script. See attached shell-script for a full explanation. You could have put the explanation

Re: How to enable infinite command history

2012-02-01 Thread suvayu ali
On Tue, Jan 31, 2012 at 18:23, Dennis Williamson wrote: > I have the same use case. Try one of my logging functions at > http://stackoverflow.com/945288/26428 That link doesn't work for me, but I think you meant this question:

Re: Is this a bug in [[ -f ]]?

2011-08-19 Thread suvayu ali
Hello Eric, On Fri, Aug 19, 2011 at 5:04 PM, Eric Blake wrote: > On 08/19/2011 08:45 AM, Suvayu Ali wrote: >> >> I am trying to test if a file exists and then source it. My problem is >> the test succeeds even if the variable is empty! If I pass no argument >> at all,

Re: Is this a bug in [[ -f ]]?

2011-08-19 Thread Suvayu Ali
Hi everyone, Greg Wooledge eeg.ccf.org> writes: > > On Thu, Aug 18, 2011 at 12:35:37PM -0400, Steven W. Orr wrote: > > lrwxrwxrwx. 1 sorr fc5 Aug 18 08:48 err -> errio > > -rw-rw-r--. 1 sorr fc 3816 Aug 18 08:48 errio > > > *836 > [[ -f err ]] > > 837 > echo $? # BAD answer >