public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ANNOUNCEMENT] Updated base-files-4.0-6
@ 2011-03-18 20:37 David Sastre
  2011-03-31  0:09 ` Cyrille Lefevre
  0 siblings, 1 reply; 9+ messages in thread
From: David Sastre @ 2011-03-18 20:37 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 929 bytes --]

Version 4.0-6 of base-files has been uploaded.

Base-files is a set of system configuration and setup files.

Change Log
----------
4.0-6
    * Re-corrected PRINTER setting.
    * Dropped non-POSIX tests in /etc/profile - Eric Blake
    * Dropped user's homedir ownership test.

              *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there. It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com@cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available starting
at this URL.

-- 
Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ANNOUNCEMENT] Updated base-files-4.0-6
  2011-03-18 20:37 [ANNOUNCEMENT] Updated base-files-4.0-6 David Sastre
@ 2011-03-31  0:09 ` Cyrille Lefevre
  2011-03-31  2:47   ` Cyrille Lefevre
  0 siblings, 1 reply; 9+ messages in thread
From: Cyrille Lefevre @ 2011-03-31  0:09 UTC (permalink / raw)
  To: cygwin


Le 18/03/2011 19:45, David Sastre a écrit :
> Version 4.0-6 of base-files has been uploaded.
>
> Base-files is a set of system configuration and setup files.

Hi,

would it be possible to change :

profile_d ()
{
   saved_LC_COLLATE=${LC_COLLATE}
   LC_COLLATE=C
   for file in /etc/profile.d/*.$1; do
     [ -e "${file}" ] && . "${file}"
   done
   LC_COLLATE=${saved_LC_COLLATE}
   unset saved_LC_COLLATE
}

to :

profile_d ()
{
   for file in $(export LC_COLLATE=C; echo /etc/profile.d/*.$1); do
     [ -e "${file}" ] && . "${file}"
   done
}

PS : LC_COLLATE has to be exported to be effective.

Regards,

Cyrille Lefevre
-- 
mailto:Cyrille.Lefevre-lists@laposte.net



--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ANNOUNCEMENT] Updated base-files-4.0-6
  2011-03-31  0:09 ` Cyrille Lefevre
@ 2011-03-31  2:47   ` Cyrille Lefevre
  2011-03-31 14:40     ` Jon TURNEY
  0 siblings, 1 reply; 9+ messages in thread
From: Cyrille Lefevre @ 2011-03-31  2:47 UTC (permalink / raw)
  To: cygwin


Le 31/03/2011 01:53, Cyrille Lefevre a écrit :
>
>
> Le 18/03/2011 19:45, David Sastre a écrit :
>> Version 4.0-6 of base-files has been uploaded.
>>
>> Base-files is a set of system configuration and setup files.

Hi,

PS1 *must not* be exported.

historically, it is not exported to know if it is a shell is interactive 
or not since only interactive shells set it.

i.e., the following both solutions are equivalent.

case $- in *i*) interactive ;; esac
[ -n $PS1 ] && interactive

if PS1 is exported, it is always set for subshells and this may cause 
trouble in some script.

also, from man bash :

An  interactive  shell  is one started without non-option arguments and
without the -c option whose standard input and error are both connected
to  terminals  (as determined by isatty(3)), or one started with the -i
option.  PS1 is set and $- includes i if bash is interactive,  allowing
a shell script or a startup file to test this state.

Regards,

Cyrille Lefevre
-- 
mailto:Cyrille.Lefevre-lists@laposte.net



--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ANNOUNCEMENT] Updated base-files-4.0-6
  2011-03-31  2:47   ` Cyrille Lefevre
@ 2011-03-31 14:40     ` Jon TURNEY
  2011-03-31 20:16       ` Cyrille Lefevre
                         ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jon TURNEY @ 2011-03-31 14:40 UTC (permalink / raw)
  To: cygwin

On 31/03/2011 01:03, Cyrille Lefevre wrote:
> Le 31/03/2011 01:53, Cyrille Lefevre a écrit :
>> Le 18/03/2011 19:45, David Sastre a écrit :
>>> Version 4.0-6 of base-files has been uploaded.
>>>
>>> Base-files is a set of system configuration and setup files.
> 
> Hi,
> 
> PS1 *must not* be exported.
> 
> historically, it is not exported to know if it is a shell is interactive or
> not since only interactive shells set it.
> 
> i.e., the following both solutions are equivalent.
> 
> case $- in *i*) interactive ;; esac
> [ -n $PS1 ] && interactive
> 
> if PS1 is exported, it is always set for subshells and this may cause trouble
> in some script.
> 
> also, from man bash :
> 
> An  interactive  shell  is one started without non-option arguments and
> without the -c option whose standard input and error are both connected
> to  terminals  (as determined by isatty(3)), or one started with the -i
> option.  PS1 is set and $- includes i if bash is interactive,  allowing
> a shell script or a startup file to test this state.

What the man page doesn't tell you is that bash actually unsets PS1 if the
shell isn't interactive, so for bash at least, exporting PS1 can't cause a
problem.

--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ANNOUNCEMENT] Updated base-files-4.0-6
  2011-03-31 14:40     ` Jon TURNEY
@ 2011-03-31 20:16       ` Cyrille Lefevre
  2011-03-31 20:18       ` Matthias Andree
  2011-04-01 18:09       ` David Sastre
  2 siblings, 0 replies; 9+ messages in thread
From: Cyrille Lefevre @ 2011-03-31 20:16 UTC (permalink / raw)
  To: cygwin


Le 31/03/2011 13:24, Jon TURNEY a écrit :

> What the man page doesn't tell you is that bash actually unsets PS1 if the
> shell isn't interactive, so for bash at least, exporting PS1 can't cause a
> problem.

thanks for the tip, however, this is not an expected behaviour...

Regards,

Cyrille Lefevre
-- 
mailto:Cyrille.Lefevre-lists@laposte.net



--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ANNOUNCEMENT] Updated base-files-4.0-6
  2011-03-31 14:40     ` Jon TURNEY
  2011-03-31 20:16       ` Cyrille Lefevre
@ 2011-03-31 20:18       ` Matthias Andree
  2011-03-31 20:21         ` Larry Hall (Cygwin)
  2011-03-31 20:34         ` Csaba Raduly
  2011-04-01 18:09       ` David Sastre
  2 siblings, 2 replies; 9+ messages in thread
From: Matthias Andree @ 2011-03-31 20:18 UTC (permalink / raw)
  To: cygwin

Am 31.03.2011 13:24, schrieb Jon TURNEY:

> What the man page doesn't tell you is that bash actually unsets PS1 if the
> shell isn't interactive, so for bash at least, exporting PS1 can't cause a
> problem.

bash isn't the only shell under the Sun.

--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ANNOUNCEMENT] Updated base-files-4.0-6
  2011-03-31 20:18       ` Matthias Andree
@ 2011-03-31 20:21         ` Larry Hall (Cygwin)
  2011-03-31 20:34         ` Csaba Raduly
  1 sibling, 0 replies; 9+ messages in thread
From: Larry Hall (Cygwin) @ 2011-03-31 20:21 UTC (permalink / raw)
  To: cygwin

On 3/31/2011 3:53 PM, Matthias Andree wrote:
> Am 31.03.2011 13:24, schrieb Jon TURNEY:
>
>> What the man page doesn't tell you is that bash actually unsets PS1 if the
>> shell isn't interactive, so for bash at least, exporting PS1 can't cause a
>> problem.
>
> bash isn't the only shell under the Sun.

Or in the C... ah, I mean sea.

-- 
Larry

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ANNOUNCEMENT] Updated base-files-4.0-6
  2011-03-31 20:18       ` Matthias Andree
  2011-03-31 20:21         ` Larry Hall (Cygwin)
@ 2011-03-31 20:34         ` Csaba Raduly
  1 sibling, 0 replies; 9+ messages in thread
From: Csaba Raduly @ 2011-03-31 20:34 UTC (permalink / raw)
  To: cygwin; +Cc: Matthias Andree

On Thu, Mar 31, 2011 at 9:53 PM, Matthias Andree  wrote:
>
> bash isn't the only shell under the Sun.

Funny, an Oracle told me the same thing.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ANNOUNCEMENT] Updated base-files-4.0-6
  2011-03-31 14:40     ` Jon TURNEY
  2011-03-31 20:16       ` Cyrille Lefevre
  2011-03-31 20:18       ` Matthias Andree
@ 2011-04-01 18:09       ` David Sastre
  2 siblings, 0 replies; 9+ messages in thread
From: David Sastre @ 2011-04-01 18:09 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1616 bytes --]

On Thu, Mar 31, 2011 at 12:24:33PM +0100, Jon TURNEY wrote:
> On 31/03/2011 01:03, Cyrille Lefevre wrote:
> > Le 31/03/2011 01:53, Cyrille Lefevre a écrit :
> >> Le 18/03/2011 19:45, David Sastre a écrit :
> >>> Version 4.0-6 of base-files has been uploaded.
> >>>
> >>> Base-files is a set of system configuration and setup files.
> > 
> > Hi,
> > 
> > PS1 *must not* be exported.
> > 
> > historically, it is not exported to know if it is a shell is interactive or
> > not since only interactive shells set it.
> > 
> > i.e., the following both solutions are equivalent.
> > 
> > case $- in *i*) interactive ;; esac
> > [ -n $PS1 ] && interactive
> > 
> > if PS1 is exported, it is always set for subshells and this may cause trouble
> > in some script.
> > 
> > also, from man bash :
> > 
> > An  interactive  shell  is one started without non-option arguments and
> > without the -c option whose standard input and error are both connected
> > to  terminals  (as determined by isatty(3)), or one started with the -i
> > option.  PS1 is set and $- includes i if bash is interactive,  allowing
> > a shell script or a startup file to test this state.
> 
> What the man page doesn't tell you is that bash actually unsets PS1 if the
> shell isn't interactive, so for bash at least, exporting PS1 can't cause a
> problem.

Hello,

Both improvements have been checked in for a future 4.0-7 version.
I'm waiting for dash to be updated to include also a simpler PRINTER
setting as you proposed.

-- 
Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-04-01 18:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-18 20:37 [ANNOUNCEMENT] Updated base-files-4.0-6 David Sastre
2011-03-31  0:09 ` Cyrille Lefevre
2011-03-31  2:47   ` Cyrille Lefevre
2011-03-31 14:40     ` Jon TURNEY
2011-03-31 20:16       ` Cyrille Lefevre
2011-03-31 20:18       ` Matthias Andree
2011-03-31 20:21         ` Larry Hall (Cygwin)
2011-03-31 20:34         ` Csaba Raduly
2011-04-01 18:09       ` David Sastre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).