!yzBwvLxciGLIBHonQe:matrix.org

bash

270 Members
Discussions about Bash shell, scripting, etc.37 Servers

Load older messages


SenderMessageTime
22 Aug 2023
@alex5485:tchncs.de@alex5485:tchncs.de joined the room.10:30:41
@alex5485:tchncs.de@alex5485:tchncs.deHi10:30:45
@alex5485:tchncs.de@alex5485:tchncs.dewhy does this print "test" if it is not supposed to: true && true || true && echo "test"10:31:10
@alex5485:tchncs.de@alex5485:tchncs.deThis does not happen if I put brackets around it10:31:23
@alex5485:tchncs.de@alex5485:tchncs.deIs there any way to make it not do that? Or the only one is to make another bash environment?10:31:39
@twkmhnnomn:matrix.orgthose who know me have no need of my nameuse if instead.11:28:10
@alex5485:tchncs.de@alex5485:tchncs.de
In reply to those who know me have no need of my name
use if instead.
Alright. I just prefer this syntax
11:41:20
@twkmhnnomn:matrix.orgthose who know me have no need of my nameexcept you don't seem to understand it.12:23:02
23 Aug 2023
@vitalii95:matrix.orgvitalii95 joined the room.14:21:44
27 Aug 2023
@konsolebox:matrix.orgkonsolebox joined the room.09:40:35
2 Sep 2023
@dermoth:matrix.orgdermoth joined the room.08:17:49
@partime:matrix.org@partime:matrix.org joined the room.10:58:38
3 Sep 2023
@dhatakult:matrix.org@dhatakult:matrix.org changed their profile picture.17:47:50
4 Sep 2023
@dhatakult:matrix.org@dhatakult:matrix.org changed their profile picture.02:08:43
5 Sep 2023
@joey:perthchat.org@joey:perthchat.org removed their display name joey.09:58:00
@joey:perthchat.org@joey:perthchat.org left the room.11:52:17
7 Sep 2023
@dermoth:matrix.orgdermoth changed their display name from Thomas GS to Thomas.06:12:34
@boxcarcatdog:matrix.orgboxcarcatdog joined the room.07:33:26
@dhatakult:matrix.org@dhatakult:matrix.org left the room.19:34:53
8 Sep 2023
@Fernando-Basso:matrix.orgFernando-Basso joined the room.14:38:33
@Fernando-Basso:matrix.orgFernando-BassoI am running an encrypted shell script like this: bash < <(2> /dev/null gpg -dq ./script.gpg), except this script needs a parameter. I'm failing to find a way to pass the parameter to the script in this situation.14:39:01
@Fernando-Basso:matrix.orgFernando-Basso

Maybe something like this:

$ bash -s - foo < <(cat ./args.sh)
foo
15:09:34
9 Sep 2023
@partime:matrix.org@partime:matrix.org left the room.22:08:15
11 Sep 2023
@bahman-m:matrix.orgbahmanm joined the room.09:43:02
14 Sep 2023
@dermoth:matrix.orgdermoth

Fernando-Basso: correct, I'd swap the thing around though for clarity, and with -s you may need -- as your first argument co you can pass options to your scripts

gpg -dq ./script.gpg 2>/dev/null |bash -s -- <args...>

This is also quite useful over ssh, send your script to remote, read back its output

05:10:50
16 Sep 2023
@pascalfuerst:matrix.org@pascalfuerst:matrix.org left the room.15:03:29
@asuras:nitro.chatAsuras joined the room.20:55:46
17 Sep 2023
@heliopolis:nitro.chatHeliopolis joined the room.06:37:35
21 Sep 2023
@lunardigs:matrix.orglunardigs 🌒 changed their display name from lunardigs (forwhatisthecometothisonehere?) to lunardigs (Jordachedude).23:35:22
22 Sep 2023
@arya:envs.netArya [Migrated to @arya:frei.chat] changed their display name from Arya [Migrated to @aryak:projectsegfau.lt] to Arya [Migrated to @arya:frei.chat].12:29:21

Show newer messages


Back to Room ListRoom Version: