www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/08/31/11:51:05

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=ukWs99m9Yj5UdpDB
Nt86p2Kg17BIT+PtkNwVqfy5glK7joFoacaa8HiyXUJomCGvLadqn2m0I3PfH0rG
u96GRIT0AqwA4KGb7KTPXj5HywXAFWp1XH0FfdW79KJX62Vx5huAavYy6XR6rvAs
IbcUinv2gEwSrCXrSD6LEjnkGDw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=N89Eptj7bndgaxTSwLd+do
GMIVY=; b=RT0/7Ryx384eiN/fxk7gmG7O9P0TRFrrrwg7+VCCMHvWGfPeczPBT0
/REo5YsiDkjhvHo4St0Ua19Np21z9TvCyVPVFykU8JlGA/mJyEmar6sk9G9iWgky
kGK0Fv+bN2T8Y25zAoXCiMzEMNDqXeblMWq9mjkMqwBtd+jT7wxQY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,CYGWIN_OWNER_BODY,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=Michel, Playing, cyg, Bash
X-HELO: mail-io0-f179.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BNmhP8HEfG9xzXEb9eO1KMeVkRQldOxV7i+DgiQSwuo=; b=QDgy+UBsl7N4icSNUS+XSzLsAUSB4HhiBPWj6EtS7eiWUAFnWqVKyK11B1F5Fy/k9h N5IQzT7kYUw3yA0l8Mew/3sA0Kef068jRwFhxf8LshaxQSnm5fmfOY/Mz3hSOyMaITL4 2YZ1zSp/zQXMciUUuaYC3x1Pa7jioJxU+TGvnNOq0BNwA2Doh/8R/lvNVCR2ZQ6D6cGM YOR0PI9FXXbFdLOTUIJ6spuysEP/dtxTa0Nk026CkF/FaIkssqw7G3n38QRJ2ZGOIjJv jxd9K40STpg9esAoT8EvFyTH5lab1P7+i0L/9IRqTU8XoRoyxjBW4MsmbRBaHKYZa404 bKzQ==
X-Gm-Message-State: AHPjjUh/fKYZH1NQpk2ui1w1CGmCqBHAm1wl3gkkzpfoT/rWQDQmNHz6 H+RZGrxPtHNsrmF9
X-Google-Smtp-Source: ADKCNb7YMSx2tfpPI80dVEOm2SELFAPMisIW0E3seHHFw2fuvTXK//HNNdR6AMt2q47JY2h3bZXsDg==
X-Received: by 10.36.130.5 with SMTP id t5mr1199858itd.7.1504194640951; Thu, 31 Aug 2017 08:50:40 -0700 (PDT)
Subject: Re: Bash monitor mode remains enabled if disabled in .bashrc
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
References: <000701d321e7$6ed52220$4c7f6660$@rogers.com> <54420842-610d-aa87-5000-5c531cf7d2a1 AT gmail DOT com> <000601d32265$f9f85880$ede90980$@rogers.com>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <eefdefde-ee65-892b-a2ad-3a0bc29e6682@gmail.com>
Date: Thu, 31 Aug 2017 11:50:39 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <000601d32265$f9f85880$ede90980$@rogers.com>
X-IsSubscribed: yes

Keep responses to the list and not the individual responders.

Forwarded on your behalf.

On 8/31/2017 10:32 AM, Michel LaBarre wrote:
> Thanks for the reply.
> 
> Quick answer (repeated interleaved below):
>   - my .bash_profile does indeed source .bashrc
>   - I added an echo to .bashrc to be doubly  sure - it displays as expected
> 
>> -----Original Message-----
>> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On
>> Behalf Of cyg Simple
>> Sent: August-31-17 8:31 AM
>> To: cygwin AT cygwin DOT com
>> Subject: Re: Bash monitor mode remains enabled if disabled in .bashrc
>>
>> On 8/30/2017 7:26 PM, Michel LaBarre wrote:
>>> Playing with set -m/+m and shopt -s lastpipe, in an interactive bash shell,
>>> I came across a situation
>>> which is minor unless  it has broader implications for others that I do not
>>> know about.
>>>
>>> Specifically if "set +m" is present in  .bashrc, it looks like job control
>>> (monitor mode) is off
>>> in an interactive shell (as per "echo $-") but it is actually on.
>>>
>>> I ran into this with "shopt -s lastpipe" behaviour with and without job
>>> control.
>>> I can also reproduce it with "sleep 25&" then "fg" will fail with "no job
>>> control".
>>>
>>> If I "set +m" within the interactive shell rather than, or in addition to,
>>> .bashrc, both the
>>> flags ($-) and behaviour (lastpipe and fg) reflect job control being off.
>>>
>>
>> Are you sure that .bashrc is being sourced?  The initial start of an
>> interactive shell doesn't read .bashrc by default.  It reads
>> bash_profile when starting interactive mode.  Now most likely your
>> bash_profile contains lines to check the existence of .bashrc and
>> source it but you need to check.
>>
> My .bash_profile does indeed source .bashrc
> I added an echo to .bashrc to be doubly  sure - it displays as expected> --
> 

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019