22 Aug 2023 |
| @alex5485:tchncs.de joined the room. | 10:30:41 |
@alex5485:tchncs.de | Hi | 10:30:45 |
@alex5485:tchncs.de | why does this print "test" if it is not supposed to:
true && true || true && echo "test" | 10:31:10 |
@alex5485:tchncs.de | This does not happen if I put brackets around it | 10:31:23 |
@alex5485:tchncs.de | Is there any way to make it not do that? Or the only one is to make another bash environment? | 10:31:39 |
those who know me have no need of my name | use if instead. | 11:28:10 |
@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 |
those who know me have no need of my name | except you don't seem to understand it. | 12:23:02 |
23 Aug 2023 |
| vitalii95 joined the room. | 14:21:44 |
27 Aug 2023 |
| konsolebox joined the room. | 09:40:35 |
2 Sep 2023 |
| dermoth joined the room. | 08:17:49 |
| @partime:matrix.org joined the room. | 10:58:38 |
3 Sep 2023 |
| @dhatakult:matrix.org changed their profile picture. | 17:47:50 |
4 Sep 2023 |
| @dhatakult:matrix.org changed their profile picture. | 02:08:43 |
5 Sep 2023 |
| @joey:perthchat.org removed their display name joey. | 09:58:00 |
| @joey:perthchat.org left the room. | 11:52:17 |
7 Sep 2023 |
| dermoth changed their display name from Thomas GS to Thomas. | 06:12:34 |
| boxcarcatdog joined the room. | 07:33:26 |
| @dhatakult:matrix.org left the room. | 19:34:53 |
8 Sep 2023 |
| Fernando-Basso joined the room. | 14:38:33 |
Fernando-Basso | I 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 | Maybe something like this:
$ bash -s - foo < <(cat ./args.sh)
foo
| 15:09:34 |
9 Sep 2023 |
| @partime:matrix.org left the room. | 22:08:15 |
11 Sep 2023 |
| bahmanm joined the room. | 09:43:02 |
14 Sep 2023 |
dermoth | 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 left the room. | 15:03:29 |
| Asuras joined the room. | 20:55:46 |
17 Sep 2023 |
| Heliopolis joined the room. | 06:37:35 |
21 Sep 2023 |
| lunardigs 🌒 changed their display name from lunardigs (forwhatisthecometothisonehere?) to lunardigs (Jordachedude). | 23:35:22 |
22 Sep 2023 |
| Arya [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 |