4.4-rc1: readline wrapping error when prompt wraps around

2016-03-26 Thread Andreas Schwab
When $PS1 contains \[ \] and is longer than the line length then readline miscounts the wrap coloumn. For example, set PS1 like this: PS1="\[$(tput bold)\]$(printf '%*s' $(stty size | awk '{print$2}') x)\[$(tput sgr0)\] " This causes readline to wrap the input too early by the amount of hidden

Re: scripts one after the other

2016-03-26 Thread shawn wilson
On Mar 25, 2016 9:32 PM, "Val Krem" wrote: > > At the present I have defined the variables and folders path in both scripts. > > Instead of this, is it possible to combine the two scripts in one so that I can define the varietals at one spot. It would be less prone to error.

Re: scripts one after the other

2016-03-26 Thread shawn wilson
On Sat, Mar 26, 2016 at 9:26 AM, Val Krem wrote: > > I'm not sure what you want, but you could always pipe one script into > another and evaluate the input from the later. Or just call the second > script from the first in an if. > (untested) #!/bin/bash # t2.sh read f if [[

Re: scripts one after the other

2016-03-26 Thread John McKown
On Sat, Mar 26, 2016 at 8:26 AM, Val Krem wrote: > > I'm not sure what you want, but you could always pipe one script into > another and evaluate the input from the later. Or just call the second > script from the first in an if. > > > It is not the question of PIPE one script