all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] system: Do not export PS1 in /etc/skel/.bashrc.
@ 2016-05-05 15:07 Alex Griffin
  2016-05-05 15:17 ` Alex Griffin
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Griffin @ 2016-05-05 15:07 UTC (permalink / raw)
  To: guix-devel

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

There's really no reason for other programs to need to see your bash
prompt, so I removed a couple `export` keywords from the default bashrc.
-- 
Alex Griffin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-system-Do-not-export-PS1-in-etc-skel-.bashrc.patch --]
[-- Type: text/x-patch; name="0001-system-Do-not-export-PS1-in-etc-skel-.bashrc.patch", Size: 775 bytes --]

From 597c788a6604bcd84a24a469d92c1fbd47f4bedb Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Thu, 5 May 2016 09:59:03 -0500
Subject: [PATCH] system: Do not export PS1 in /etc/skel/.bashrc.

---
 gnu/system/shadow.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index a13ef11..1aa4422 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -166,9 +166,9 @@ fi
 # Adjust the prompt depending on whether we're in 'guix environment'.
 if [ -n \"$GUIX_ENVIRONMENT\" ]
 then
-    export PS1='\\u@\\h \\w [env]\\$ '
+    PS1='\\u@\\h \\w [env]\\$ '
 else
-    export PS1='\\u@\\h \\w\\$ '
+    PS1='\\u@\\h \\w\\$ '
 fi
 alias ls='ls -p --color'
 alias ll='ls -l'\n"))
-- 
2.7.4


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

* Re: [PATCH] system: Do not export PS1 in /etc/skel/.bashrc.
  2016-05-05 15:07 [PATCH] system: Do not export PS1 in /etc/skel/.bashrc Alex Griffin
@ 2016-05-05 15:17 ` Alex Griffin
  2016-05-05 22:34   ` Efraim Flashner
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Griffin @ 2016-05-05 15:17 UTC (permalink / raw)
  To: guix-devel

Also, is this a large enough change that I should I have added my name
to the copyright notice? I have a few more patches nearly ready to
submit once I figure out this process, and I'm wondering what the
threshold is. What if all I do is update a version number+hash?

Thanks,
-- 
Alex Griffin

On Thu, May 5, 2016, at 10:07 AM, Alex Griffin wrote:
> There's really no reason for other programs to need to see your bash
> prompt, so I removed a couple `export` keywords from the default bashrc.
> -- 
> Alex Griffin
> Email had 1 attachment:
> + 0001-system-Do-not-export-PS1-in-etc-skel-.bashrc.patch
>   1k (text/x-patch)

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

* Re: [PATCH] system: Do not export PS1 in /etc/skel/.bashrc.
  2016-05-05 15:17 ` Alex Griffin
@ 2016-05-05 22:34   ` Efraim Flashner
  2016-05-05 23:18     ` Alex Griffin
  0 siblings, 1 reply; 5+ messages in thread
From: Efraim Flashner @ 2016-05-05 22:34 UTC (permalink / raw)
  To: Alex Griffin; +Cc: guix-devel

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

On Thu, May 05, 2016 at 10:17:36AM -0500, Alex Griffin wrote:
> Also, is this a large enough change that I should I have added my name
> to the copyright notice? I have a few more patches nearly ready to
> submit once I figure out this process, and I'm wondering what the
> threshold is. What if all I do is update a version number+hash?
> 
> Thanks,
> -- 
> Alex Griffin
> 

I'm totally not a lawyer, but I believe officially and legally any
change you make is yours and needs/should have a copyright line.
On the other side, I believe that if you make a change and don't
attach your name to it then it's as if you've tossed it into the file
with all the other commits there and it can be assumed to follow the
rest of the file/project in terms of copyright.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH] system: Do not export PS1 in /etc/skel/.bashrc.
  2016-05-05 22:34   ` Efraim Flashner
@ 2016-05-05 23:18     ` Alex Griffin
  2016-05-06 10:18       ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Griffin @ 2016-05-05 23:18 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: guix-devel

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

On Thu, May 5, 2016, at 05:34 PM, Efraim Flashner wrote:
> I'm totally not a lawyer, but I believe officially and legally any
> change you make is yours and needs/should have a copyright line.
> On the other side, I believe that if you make a change and don't
> attach your name to it then it's as if you've tossed it into the file
> with all the other commits there and it can be assumed to follow the
> rest of the file/project in terms of copyright.

Okay, well I'll just go by that policy then unless someone else
disagrees. Here's an updated patch with a copyright line.
-- 
Alex Griffin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-system-Do-not-export-PS1-in-etc-skel-.bashrc.patch --]
[-- Type: text/x-patch; name="0001-system-Do-not-export-PS1-in-etc-skel-.bashrc.patch", Size: 1017 bytes --]

From d635ffb29d3755acaa646c293543d4a6a27cc9b4 Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Thu, 5 May 2016 09:59:03 -0500
Subject: [PATCH] system: Do not export PS1 in /etc/skel/.bashrc.

---
 gnu/system/shadow.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index a13ef11..b8837c6 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -166,9 +167,9 @@ fi
 # Adjust the prompt depending on whether we're in 'guix environment'.
 if [ -n \"$GUIX_ENVIRONMENT\" ]
 then
-    export PS1='\\u@\\h \\w [env]\\$ '
+    PS1='\\u@\\h \\w [env]\\$ '
 else
-    export PS1='\\u@\\h \\w\\$ '
+    PS1='\\u@\\h \\w\\$ '
 fi
 alias ls='ls -p --color'
 alias ll='ls -l'\n"))
-- 
2.7.4


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

* Re: [PATCH] system: Do not export PS1 in /etc/skel/.bashrc.
  2016-05-05 23:18     ` Alex Griffin
@ 2016-05-06 10:18       ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-05-06 10:18 UTC (permalink / raw)
  To: Alex Griffin; +Cc: guix-devel

Alex Griffin <a@ajgrf.com> skribis:

> On Thu, May 5, 2016, at 05:34 PM, Efraim Flashner wrote:
>> I'm totally not a lawyer, but I believe officially and legally any
>> change you make is yours and needs/should have a copyright line.
>> On the other side, I believe that if you make a change and don't
>> attach your name to it then it's as if you've tossed it into the file
>> with all the other commits there and it can be assumed to follow the
>> rest of the file/project in terms of copyright.
>
> Okay, well I'll just go by that policy then unless someone else
> disagrees. Here's an updated patch with a copyright line.

Yeah I think it’s reasonable.

> From d635ffb29d3755acaa646c293543d4a6a27cc9b4 Mon Sep 17 00:00:00 2001
> From: Alex Griffin <a@ajgrf.com>
> Date: Thu, 5 May 2016 09:59:03 -0500
> Subject: [PATCH] system: Do not export PS1 in /etc/skel/.bashrc.

Indeed, good catch.

Committed with a ChangeLog-style commit log, thank you!

Ludo’.

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

end of thread, other threads:[~2016-05-06 10:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-05 15:07 [PATCH] system: Do not export PS1 in /etc/skel/.bashrc Alex Griffin
2016-05-05 15:17 ` Alex Griffin
2016-05-05 22:34   ` Efraim Flashner
2016-05-05 23:18     ` Alex Griffin
2016-05-06 10:18       ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.