Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] zsh: add alternative for sh
@ 2021-12-14 21:31 SimonPersson
  2021-12-15  0:08 ` ericonr
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: SimonPersson @ 2021-12-14 21:31 UTC (permalink / raw)
  To: ml

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

There is a new pull request by SimonPersson against master on the void-packages repository

https://github.com/SimonPersson/void-packages zsh-alternative
https://github.com/void-linux/void-packages/pull/34540

zsh: add alternative for sh
#### Testing the changes
- I tested the changes in this PR: **YES**

The system boots and basic usage seems to work fine with zsh as `/bin/sh`.


#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



A patch file from https://github.com/void-linux/void-packages/pull/34540.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-zsh-alternative-34540.patch --]
[-- Type: text/x-diff, Size: 699 bytes --]

From 112c5ac1645b2bba3b7c0b22724bc1df5f872244 Mon Sep 17 00:00:00 2001
From: Simon Persson <simon@flaskpost.me>
Date: Tue, 14 Dec 2021 22:29:13 +0100
Subject: [PATCH] zsh: add alternative for sh

---
 srcpkgs/zsh/template | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/srcpkgs/zsh/template b/srcpkgs/zsh/template
index a7aea22e18d9..a8e1291cea8d 100644
--- a/srcpkgs/zsh/template
+++ b/srcpkgs/zsh/template
@@ -27,6 +27,10 @@ register_shell="/bin/zsh /usr/bin/zsh"
 lib32disabled=yes
 conf_files="/etc/zsh/*"
 
+alternatives="
+ sh:sh:/usr/bin/zsh
+ sh:sh.1:/usr/share/man/man1/zsh.1"
+
 post_patch() {
 	# Set correct keymap path
 	sed -i 's#/usr/share/keymaps#/usr/share/kbd/keymaps#g' \

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

* Re: zsh: add alternative for sh
  2021-12-14 21:31 [PR PATCH] zsh: add alternative for sh SimonPersson
@ 2021-12-15  0:08 ` ericonr
  2021-12-15  0:25 ` Vaelatern
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ericonr @ 2021-12-15  0:08 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/34540#issuecomment-994156401

Comment:
This should increase revision, too.

That said, I'm not sure how I feel about it.

@void-linux/pkg-committers thoughts?

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

* Re: zsh: add alternative for sh
  2021-12-14 21:31 [PR PATCH] zsh: add alternative for sh SimonPersson
  2021-12-15  0:08 ` ericonr
@ 2021-12-15  0:25 ` Vaelatern
  2021-12-15  0:25 ` Vaelatern
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Vaelatern @ 2021-12-15  0:25 UTC (permalink / raw)
  To: ml

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

New comment by Vaelatern on void-packages repository

https://github.com/void-linux/void-packages/pull/34540#issuecomment-994164519

Comment:
I don't particularly like it. I just tried zsh as sh, and while it works, it doesn't add anything, and doesn't even separate dotfiles.

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

* Re: zsh: add alternative for sh
  2021-12-14 21:31 [PR PATCH] zsh: add alternative for sh SimonPersson
  2021-12-15  0:08 ` ericonr
  2021-12-15  0:25 ` Vaelatern
@ 2021-12-15  0:25 ` Vaelatern
  2021-12-15  0:25 ` Vaelatern
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Vaelatern @ 2021-12-15  0:25 UTC (permalink / raw)
  To: ml

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

New comment by Vaelatern on void-packages repository

https://github.com/void-linux/void-packages/pull/34540#issuecomment-994164535

Comment:
r

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

* Re: zsh: add alternative for sh
  2021-12-14 21:31 [PR PATCH] zsh: add alternative for sh SimonPersson
                   ` (2 preceding siblings ...)
  2021-12-15  0:25 ` Vaelatern
@ 2021-12-15  0:25 ` Vaelatern
  2021-12-15  0:35 ` ahesford
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Vaelatern @ 2021-12-15  0:25 UTC (permalink / raw)
  To: ml

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

New comment by Vaelatern on void-packages repository

https://github.com/void-linux/void-packages/pull/34540#issuecomment-994164535

Comment:
r

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

* Re: zsh: add alternative for sh
  2021-12-14 21:31 [PR PATCH] zsh: add alternative for sh SimonPersson
                   ` (3 preceding siblings ...)
  2021-12-15  0:25 ` Vaelatern
@ 2021-12-15  0:35 ` ahesford
  2021-12-15  3:46 ` sgn
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ahesford @ 2021-12-15  0:35 UTC (permalink / raw)
  To: ml

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

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/34540#issuecomment-994177374

Comment:
There is no discernible benefit to using `zsh` as `sh` and a lot of potential drawbacks. Substituting `bash` for `sh` is one thing; several popular distributions use `bash` as `sh` and a wide range of shell scripts with a `/bin/sh` shebang are probably widely deployed and well tested with `bash`. (I don't really like this; script writers who specify `/bin/sh` should make sure they aren't inadvertently relying on bashisms; this common practice leads to sloppiness.) I'm almost certain that the vast majority of shell scripts written for `/bin/sh` have *never* been tested when interpreted by `zsh`.

I vote against adding an alternative here.

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

* Re: zsh: add alternative for sh
  2021-12-14 21:31 [PR PATCH] zsh: add alternative for sh SimonPersson
                   ` (4 preceding siblings ...)
  2021-12-15  0:35 ` ahesford
@ 2021-12-15  3:46 ` sgn
  2021-12-15  5:58 ` q66
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sgn @ 2021-12-15  3:46 UTC (permalink / raw)
  To: ml

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

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/34540#issuecomment-994264818

Comment:
I voted against the proposal. Let's not count the problem with current alternatives system, there are no real benefit but potential problems will arise with using zsh as `/bin/sh`

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

* Re: zsh: add alternative for sh
  2021-12-14 21:31 [PR PATCH] zsh: add alternative for sh SimonPersson
                   ` (5 preceding siblings ...)
  2021-12-15  3:46 ` sgn
@ 2021-12-15  5:58 ` q66
  2021-12-15  6:52 ` the-maldridge
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: q66 @ 2021-12-15  5:58 UTC (permalink / raw)
  To: ml

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

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/34540#issuecomment-994320103

Comment:
I also don't like it 

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

* Re: zsh: add alternative for sh
  2021-12-14 21:31 [PR PATCH] zsh: add alternative for sh SimonPersson
                   ` (6 preceding siblings ...)
  2021-12-15  5:58 ` q66
@ 2021-12-15  6:52 ` the-maldridge
  2021-12-15  6:52 ` [PR PATCH] [Closed]: " the-maldridge
  2021-12-15 23:05 ` leahneukirchen
  9 siblings, 0 replies; 11+ messages in thread
From: the-maldridge @ 2021-12-15  6:52 UTC (permalink / raw)
  To: ml

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

New comment by the-maldridge on void-packages repository

https://github.com/void-linux/void-packages/pull/34540#issuecomment-994384717

Comment:
Thank you for your patch, however at this time it will not be accepted to Void.

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

* Re: [PR PATCH] [Closed]: zsh: add alternative for sh
  2021-12-14 21:31 [PR PATCH] zsh: add alternative for sh SimonPersson
                   ` (7 preceding siblings ...)
  2021-12-15  6:52 ` the-maldridge
@ 2021-12-15  6:52 ` the-maldridge
  2021-12-15 23:05 ` leahneukirchen
  9 siblings, 0 replies; 11+ messages in thread
From: the-maldridge @ 2021-12-15  6:52 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

zsh: add alternative for sh
https://github.com/void-linux/void-packages/pull/34540

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

The system boots and basic usage seems to work fine with zsh as `/bin/sh`.


#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



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

* Re: zsh: add alternative for sh
  2021-12-14 21:31 [PR PATCH] zsh: add alternative for sh SimonPersson
                   ` (8 preceding siblings ...)
  2021-12-15  6:52 ` [PR PATCH] [Closed]: " the-maldridge
@ 2021-12-15 23:05 ` leahneukirchen
  9 siblings, 0 replies; 11+ messages in thread
From: leahneukirchen @ 2021-12-15 23:05 UTC (permalink / raw)
  To: ml

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

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/pull/34540#issuecomment-995283289

Comment:
FTR, 75b6b9bba68f57 iirc it was reverted because it actually broke something.

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

end of thread, other threads:[~2021-12-15 23:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-14 21:31 [PR PATCH] zsh: add alternative for sh SimonPersson
2021-12-15  0:08 ` ericonr
2021-12-15  0:25 ` Vaelatern
2021-12-15  0:25 ` Vaelatern
2021-12-15  0:25 ` Vaelatern
2021-12-15  0:35 ` ahesford
2021-12-15  3:46 ` sgn
2021-12-15  5:58 ` q66
2021-12-15  6:52 ` the-maldridge
2021-12-15  6:52 ` [PR PATCH] [Closed]: " the-maldridge
2021-12-15 23:05 ` leahneukirchen

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 NNTP newsgroup(s).