Components

24 Twig Components
86 Render Count
1092 ms Render Time
12.0 MiB Memory Usage

Components

Name Metadata Render Count Render Time
user_avatar
"App\Twig\Components\UserAvatarComponent"
components/user_avatar.html.twig
16 19.58ms
settings_row_switch
"App\Twig\Components\SettingsRowSwitchComponent"
components/_settings_row_switch.html.twig
15 3.45ms
date
"App\Twig\Components\DateComponent"
components/date.html.twig
7 1.63ms
user_inline
"App\Twig\Components\UserInlineComponent"
components/user_inline.html.twig
6 2.57ms
date_edited
"App\Twig\Components\DateEditedComponent"
components/date_edited.html.twig
5 1.31ms
vote
"App\Twig\Components\VoteComponent"
components/vote.html.twig
5 7.73ms
boost
"App\Twig\Components\BoostComponent"
components/boost.html.twig
5 17.57ms
entry_comment
"App\Twig\Components\EntryCommentComponent"
components/entry_comment.html.twig
4 188.94ms
entry_comments_nested
"App\Twig\Components\EntryCommentsNestedComponent"
components/_cached.html.twig
4 51.23ms
user_settings_row_switch
"App\Twig\Components\UserSettingsRowSwitchComponent"
components/_user_settings_row_switch.html.twig
4 1.72ms
settings_row_enum
"App\Twig\Components\SettingsRowEnumComponent"
components/_settings_row_enum.html.twig
2 1.06ms
entry
"App\Twig\Components\EntryComponent"
components/_cached.html.twig
1 26.78ms
entries_cross
"App\Twig\Components\EntriesCrossComponent"
components/_cached.html.twig
1 122.86ms
editor_toolbar
"App\Twig\Components\EditorToolbarComponent"
components/editor_toolbar.html.twig
1 0.26ms
user_actions
"App\Twig\Components\UserActionsComponent"
components/user_actions.html.twig
1 0.77ms
magazine_box
"App\Twig\Components\MagazineBoxComponent"
components/magazine_box.html.twig
1 10.47ms
magazine_sub
"App\Twig\Components\MagazineSubComponent"
components/magazine_sub.html.twig
1 0.74ms
related_magazines
"App\Twig\Components\RelatedMagazinesComponent"
components/_cached.html.twig
1 33.53ms
active_users
"App\Twig\Components\ActiveUsersComponent"
components/_cached.html.twig
1 728.98ms
related_categories
"App\Twig\Components\RelatedCategoriesComponent"
components/_cached.html.twig
1 4.09ms
related_posts
"App\Twig\Components\RelatedPostsComponent"
components/_cached.html.twig
1 1.95ms
related_entries
"App\Twig\Components\RelatedEntriesComponent"
components/_cached.html.twig
1 2.51ms
support_us_block
"App\Twig\Components\SupportUsBlock"
components/_cached.html.twig
1 0.25ms
featured_magazines
"App\Twig\Components\FeaturedMagazinesComponent"
components/_cached.html.twig
1 0.71ms

Render calls

entry App\Twig\Components\EntryComponent 12.0 MiB 26.78 ms
Input props
[
  "entry" => App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1385
      +entryCommentCount: 28286
      +postCount: 6
      +postCommentCount: 213
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729134767 {#276
        date: 2024-10-17 05:12:47.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729135037 {#270
        date: 2024-10-17 03:17:17.284546 UTC (+00:00)
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
    +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
    +url: null
    +body: """
      I am learning some bash scripting.\n
      \n
      I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
      \n
      Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
      \n
      What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
      \n
      For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
      </span>\n
      ```\n
      \n
      If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
      </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
      </span>\n
      ```\n
      \n
      Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 4
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729132691 {#2410
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 33597
    -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
    -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706467025
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/9987356"
    +editedAt: DateTimeImmutable @1729128865 {#1850
      date: 2024-10-17 03:34:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706436525 {#2420
      date: 2024-01-28 11:08:45.0 +01:00
    }
  }
  "isSingle" => true
  "showShortSentence" => false
  "showBody" => true
]
Attributes
[
  "class" => "entry--single section--top"
]
Component
App\Twig\Components\EntryComponent {#2955
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  -newCommentMarkerCount: App\Kbin\NewCommentMarker\NewCommentMarkerCount {#2956 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -security: Symfony\Bundle\SecurityBundle\Security {#1101 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1385
      +entryCommentCount: 28286
      +postCount: 6
      +postCommentCount: 213
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729134767 {#276
        date: 2024-10-17 05:12:47.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729135037 {#270
        date: 2024-10-17 03:17:17.284546 UTC (+00:00)
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
    +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
    +url: null
    +body: """
      I am learning some bash scripting.\n
      \n
      I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
      \n
      Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
      \n
      What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
      \n
      For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
      </span>\n
      ```\n
      \n
      If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
      </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
      </span>\n
      ```\n
      \n
      Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 4
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729132691 {#2410
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 33597
    -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
    -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706467025
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/9987356"
    +editedAt: DateTimeImmutable @1729128865 {#1850
      date: 2024-10-17 03:34:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706436525 {#2420
      date: 2024-01-28 11:08:45.0 +01:00
    }
  }
  +isSingle: true
  +showShortSentence: false
  +showBody: true
  +showMagazineName: false
  +canSeeTrash: false
  +newComments: 0
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.45 ms
Input props
[
  "user" => Proxies\__CG__\App\Entity\User {#1970
    +avatar: null
    +cover: null
    +email: "linuxPIPEpower@discuss.tchncs.de"
    +username: "@linuxPIPEpower@discuss.tchncs.de"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729128706 {#1536
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
    +entries: Doctrine\ORM\PersistentCollection {#1631 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
    +posts: Doctrine\ORM\PersistentCollection {#1659 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
    +follows: Doctrine\ORM\PersistentCollection {#1660 …}
    +followers: Doctrine\ORM\PersistentCollection {#1627 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
    +reports: Doctrine\ORM\PersistentCollection {#1425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
    +violations: Doctrine\ORM\PersistentCollection {#1699 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
    +awards: Doctrine\ORM\PersistentCollection {#1430 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
    +categories: Doctrine\ORM\PersistentCollection {#1645 …}
    -id: 86105
    -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
    +apId: "linuxPIPEpower@discuss.tchncs.de"
    +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apFollowersUrl: null
    +apInboxUrl: "https://discuss.tchncs.de/inbox"
    +apDomain: "discuss.tchncs.de"
    +apPreferredUsername: "linuxPIPEpower"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728132845 {#1515
      date: 2024-10-05 14:54:05.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1705651727 {#1516
      date: 2024-01-19 09:08:47.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#3254
  +user: Proxies\__CG__\App\Entity\User {#1970
    +avatar: null
    +cover: null
    +email: "linuxPIPEpower@discuss.tchncs.de"
    +username: "@linuxPIPEpower@discuss.tchncs.de"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729128706 {#1536
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
    +entries: Doctrine\ORM\PersistentCollection {#1631 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
    +posts: Doctrine\ORM\PersistentCollection {#1659 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
    +follows: Doctrine\ORM\PersistentCollection {#1660 …}
    +followers: Doctrine\ORM\PersistentCollection {#1627 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
    +reports: Doctrine\ORM\PersistentCollection {#1425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
    +violations: Doctrine\ORM\PersistentCollection {#1699 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
    +awards: Doctrine\ORM\PersistentCollection {#1430 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
    +categories: Doctrine\ORM\PersistentCollection {#1645 …}
    -id: 86105
    -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
    +apId: "linuxPIPEpower@discuss.tchncs.de"
    +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apFollowersUrl: null
    +apInboxUrl: "https://discuss.tchncs.de/inbox"
    +apDomain: "discuss.tchncs.de"
    +apPreferredUsername: "linuxPIPEpower"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728132845 {#1515
      date: 2024-10-05 14:54:05.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1705651727 {#1516
      date: 2024-01-19 09:08:47.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.41 ms
Input props
[
  "date" => DateTimeImmutable @1706436525 {#2420
    date: 2024-01-28 11:08:45.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#3324
  +date: DateTimeImmutable @1706436525 {#2420
    date: 2024-01-28 11:08:45.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.20 ms
Input props
[
  "createdAt" => DateTimeImmutable @1706436525 {#2420
    date: 2024-01-28 11:08:45.0 +01:00
  }
  "editedAt" => DateTimeImmutable @1729128865 {#1850
    date: 2024-10-17 03:34:25.0 +02:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#3388
  +createdAt: DateTimeImmutable @1706436525 {#2420
    date: 2024-01-28 11:08:45.0 +01:00
  }
  +editedAt: DateTimeImmutable @1729128865 {#1850
    date: 2024-10-17 03:34:25.0 +02:00
  }
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.48 ms
Input props
[
  "subject" => App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1385
      +entryCommentCount: 28286
      +postCount: 6
      +postCommentCount: 213
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729134767 {#276
        date: 2024-10-17 05:12:47.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729135037 {#270
        date: 2024-10-17 03:17:17.284546 UTC (+00:00)
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
    +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
    +url: null
    +body: """
      I am learning some bash scripting.\n
      \n
      I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
      \n
      Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
      \n
      What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
      \n
      For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
      </span>\n
      ```\n
      \n
      If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
      </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
      </span>\n
      ```\n
      \n
      Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 4
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729132691 {#2410
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 33597
    -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
    -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706467025
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/9987356"
    +editedAt: DateTimeImmutable @1729128865 {#1850
      date: 2024-10-17 03:34:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706436525 {#2420
      date: 2024-01-28 11:08:45.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#3453
  +subject: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1385
      +entryCommentCount: 28286
      +postCount: 6
      +postCommentCount: 213
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729134767 {#276
        date: 2024-10-17 05:12:47.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729135037 {#270
        date: 2024-10-17 03:17:17.284546 UTC (+00:00)
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
    +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
    +url: null
    +body: """
      I am learning some bash scripting.\n
      \n
      I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
      \n
      Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
      \n
      What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
      \n
      For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
      </span>\n
      ```\n
      \n
      If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
      </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
      </span>\n
      ```\n
      \n
      Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 4
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729132691 {#2410
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 33597
    -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
    -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706467025
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/9987356"
    +editedAt: DateTimeImmutable @1729128865 {#1850
      date: 2024-10-17 03:34:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706436525 {#2420
      date: 2024-01-28 11:08:45.0 +01:00
    }
  }
  +formDest: "entry"
  +showDownvote: true
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 1.45 ms
Input props
[
  "subject" => App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1385
      +entryCommentCount: 28286
      +postCount: 6
      +postCommentCount: 213
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729134767 {#276
        date: 2024-10-17 05:12:47.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729135037 {#270
        date: 2024-10-17 03:17:17.284546 UTC (+00:00)
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
    +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
    +url: null
    +body: """
      I am learning some bash scripting.\n
      \n
      I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
      \n
      Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
      \n
      What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
      \n
      For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
      </span>\n
      ```\n
      \n
      If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
      </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
      </span>\n
      ```\n
      \n
      Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 4
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729132691 {#2410
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 33597
    -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
    -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706467025
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/9987356"
    +editedAt: DateTimeImmutable @1729128865 {#1850
      date: 2024-10-17 03:34:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706436525 {#2420
      date: 2024-01-28 11:08:45.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#3519
  +formDest: "entry"
  +subject: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1385
      +entryCommentCount: 28286
      +postCount: 6
      +postCommentCount: 213
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729134767 {#276
        date: 2024-10-17 05:12:47.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729135037 {#270
        date: 2024-10-17 03:17:17.284546 UTC (+00:00)
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
    +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
    +url: null
    +body: """
      I am learning some bash scripting.\n
      \n
      I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
      \n
      Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
      \n
      What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
      \n
      For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
      </span>\n
      ```\n
      \n
      If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
      </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
      </span>\n
      ```\n
      \n
      Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 4
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729132691 {#2410
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 33597
    -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
    -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706467025
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/9987356"
    +editedAt: DateTimeImmutable @1729128865 {#1850
      date: 2024-10-17 03:34:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706436525 {#2420
      date: 2024-01-28 11:08:45.0 +01:00
    }
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
entries_cross App\Twig\Components\EntriesCrossComponent 12.0 MiB 122.86 ms
Input props
[
  "entry" => App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1385
      +entryCommentCount: 28286
      +postCount: 6
      +postCommentCount: 213
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729134767 {#276
        date: 2024-10-17 05:12:47.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729135037 {#270
        date: 2024-10-17 03:17:17.284546 UTC (+00:00)
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
    +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
    +url: null
    +body: """
      I am learning some bash scripting.\n
      \n
      I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
      \n
      Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
      \n
      What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
      \n
      For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
      </span>\n
      ```\n
      \n
      If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
      </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
      </span>\n
      ```\n
      \n
      Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 4
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729132691 {#2410
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 33597
    -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
    -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706467025
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/9987356"
    +editedAt: DateTimeImmutable @1729128865 {#1850
      date: 2024-10-17 03:34:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706436525 {#2420
      date: 2024-01-28 11:08:45.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\EntriesCrossComponent {#3833
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1385
      +entryCommentCount: 28286
      +postCount: 6
      +postCommentCount: 213
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729134767 {#276
        date: 2024-10-17 05:12:47.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729135037 {#270
        date: 2024-10-17 03:17:17.284546 UTC (+00:00)
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
    +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
    +url: null
    +body: """
      I am learning some bash scripting.\n
      \n
      I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
      \n
      Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
      \n
      What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
      \n
      For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
      </span>\n
      ```\n
      \n
      If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
      </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
      </span>\n
      ```\n
      \n
      Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 4
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1729132691 {#2410
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 33597
    -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
    -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1706467025
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/9987356"
    +editedAt: DateTimeImmutable @1729128865 {#1850
      date: 2024-10-17 03:34:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706436525 {#2420
      date: 2024-01-28 11:08:45.0 +01:00
    }
  }
  -repository: App\Repository\EntryRepository {#271 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -security: Symfony\Bundle\SecurityBundle\Security {#1101 …}
}
editor_toolbar App\Twig\Components\EditorToolbarComponent 12.0 MiB 0.26 ms
Input props
[
  "id" => "entry_comment_671083d8a9a8c7.65544250_body"
]
Attributes
[]
Component
App\Twig\Components\EditorToolbarComponent {#3958
  +id: "entry_comment_671083d8a9a8c7.65544250_body"
}
entry_comment App\Twig\Components\EntryCommentComponent 12.0 MiB 45.39 ms
Input props
[
  "comment" => App\Entity\EntryComment {#4157
    +user: App\Entity\User {#4105
      +avatar: null
      +cover: null
      +email: "bizdelnick@lemmy.ml"
      +username: "@bizdelnick@lemmy.ml"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729132691 {#4162
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
      +entries: Doctrine\ORM\PersistentCollection {#4099 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
      +posts: Doctrine\ORM\PersistentCollection {#4089 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
      +follows: Doctrine\ORM\PersistentCollection {#4220 …}
      +followers: Doctrine\ORM\PersistentCollection {#4213 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
      +reports: Doctrine\ORM\PersistentCollection {#4219 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
      +violations: Doctrine\ORM\PersistentCollection {#4216 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
      +awards: Doctrine\ORM\PersistentCollection {#4205 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
      +categories: Doctrine\ORM\PersistentCollection {#4206 …}
      -id: 69972
      -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
      +apId: "bizdelnick@lemmy.ml"
      +apProfileId: "https://lemmy.ml/u/bizdelnick"
      +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "bizdelnick"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729004370 {#4160
        date: 2024-10-15 16:59:30.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698940379 {#4159
        date: 2023-11-02 16:52:59.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Try something like `IFS=‘|’ read f1 f2 < <(zenity <…>)` where f1, f2 etc. are variable names."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706445108 {#4167
      date: 2024-01-28 13:31:48.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4155 …}
    +nested: Doctrine\ORM\PersistentCollection {#4153 …}
    +votes: Doctrine\ORM\PersistentCollection {#4151 …}
    +reports: Doctrine\ORM\PersistentCollection {#4149 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4117 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4121 …}
    -id: 346905
    -bodyTs: "'etc':12 'f1':6,10 'f2':7,11 'if':4 'like':3 'name':15 'read':5 'someth':2 'tri':1 'variabl':14 'zeniti':8"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/7821979"
    +editedAt: DateTimeImmutable @1729132765 {#4103
      date: 2024-10-17 04:39:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706445108 {#4166
      date: 2024-01-28 13:31:48.0 +01:00
    }
  }
  "showNested" => true
  "dateAsUrl" => false
  "showMagazineName" => false
  "showEntryTitle" => false
]
Attributes
[]
Component
App\Twig\Components\EntryCommentComponent {#4378
  +comment: App\Entity\EntryComment {#4157
    +user: App\Entity\User {#4105
      +avatar: null
      +cover: null
      +email: "bizdelnick@lemmy.ml"
      +username: "@bizdelnick@lemmy.ml"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729132691 {#4162
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
      +entries: Doctrine\ORM\PersistentCollection {#4099 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
      +posts: Doctrine\ORM\PersistentCollection {#4089 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
      +follows: Doctrine\ORM\PersistentCollection {#4220 …}
      +followers: Doctrine\ORM\PersistentCollection {#4213 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
      +reports: Doctrine\ORM\PersistentCollection {#4219 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
      +violations: Doctrine\ORM\PersistentCollection {#4216 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
      +awards: Doctrine\ORM\PersistentCollection {#4205 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
      +categories: Doctrine\ORM\PersistentCollection {#4206 …}
      -id: 69972
      -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
      +apId: "bizdelnick@lemmy.ml"
      +apProfileId: "https://lemmy.ml/u/bizdelnick"
      +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "bizdelnick"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729004370 {#4160
        date: 2024-10-15 16:59:30.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698940379 {#4159
        date: 2023-11-02 16:52:59.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Try something like `IFS=‘|’ read f1 f2 < <(zenity <…>)` where f1, f2 etc. are variable names."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706445108 {#4167
      date: 2024-01-28 13:31:48.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4155 …}
    +nested: Doctrine\ORM\PersistentCollection {#4153 …}
    +votes: Doctrine\ORM\PersistentCollection {#4151 …}
    +reports: Doctrine\ORM\PersistentCollection {#4149 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4117 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4121 …}
    -id: 346905
    -bodyTs: "'etc':12 'f1':6,10 'f2':7,11 'if':4 'like':3 'name':15 'read':5 'someth':2 'tri':1 'variabl':14 'zeniti':8"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/7821979"
    +editedAt: DateTimeImmutable @1729132765 {#4103
      date: 2024-10-17 04:39:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706445108 {#4166
      date: 2024-01-28 13:31:48.0 +01:00
    }
  }
  +showMagazineName: false
  +showEntryTitle: false
  +showNested: true
  +level: 1
  +canSeeTrash: false
  +dateAsUrl: false
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.18 ms
Input props
[
  "user" => App\Entity\User {#4105
    +avatar: null
    +cover: null
    +email: "bizdelnick@lemmy.ml"
    +username: "@bizdelnick@lemmy.ml"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729132691 {#4162
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
    +entries: Doctrine\ORM\PersistentCollection {#4099 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
    +posts: Doctrine\ORM\PersistentCollection {#4089 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
    +follows: Doctrine\ORM\PersistentCollection {#4220 …}
    +followers: Doctrine\ORM\PersistentCollection {#4213 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
    +reports: Doctrine\ORM\PersistentCollection {#4219 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
    +violations: Doctrine\ORM\PersistentCollection {#4216 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
    +awards: Doctrine\ORM\PersistentCollection {#4205 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
    +categories: Doctrine\ORM\PersistentCollection {#4206 …}
    -id: 69972
    -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
    +apId: "bizdelnick@lemmy.ml"
    +apProfileId: "https://lemmy.ml/u/bizdelnick"
    +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "bizdelnick"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729004370 {#4160
      date: 2024-10-15 16:59:30.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698940379 {#4159
      date: 2023-11-02 16:52:59.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#4439
  +user: App\Entity\User {#4105
    +avatar: null
    +cover: null
    +email: "bizdelnick@lemmy.ml"
    +username: "@bizdelnick@lemmy.ml"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729132691 {#4162
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
    +entries: Doctrine\ORM\PersistentCollection {#4099 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
    +posts: Doctrine\ORM\PersistentCollection {#4089 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
    +follows: Doctrine\ORM\PersistentCollection {#4220 …}
    +followers: Doctrine\ORM\PersistentCollection {#4213 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
    +reports: Doctrine\ORM\PersistentCollection {#4219 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
    +violations: Doctrine\ORM\PersistentCollection {#4216 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
    +awards: Doctrine\ORM\PersistentCollection {#4205 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
    +categories: Doctrine\ORM\PersistentCollection {#4206 …}
    -id: 69972
    -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
    +apId: "bizdelnick@lemmy.ml"
    +apProfileId: "https://lemmy.ml/u/bizdelnick"
    +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "bizdelnick"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729004370 {#4160
      date: 2024-10-15 16:59:30.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698940379 {#4159
      date: 2023-11-02 16:52:59.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.18 ms
Input props
[
  "date" => DateTimeImmutable @1706445108 {#4166
    date: 2024-01-28 13:31:48.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#4494
  +date: DateTimeImmutable @1706445108 {#4166
    date: 2024-01-28 13:31:48.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.17 ms
Input props
[
  "createdAt" => DateTimeImmutable @1706445108 {#4166
    date: 2024-01-28 13:31:48.0 +01:00
  }
  "editedAt" => DateTimeImmutable @1729132765 {#4103
    date: 2024-10-17 04:39:25.0 +02:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#4548
  +createdAt: DateTimeImmutable @1706445108 {#4166
    date: 2024-01-28 13:31:48.0 +01:00
  }
  +editedAt: DateTimeImmutable @1729132765 {#4103
    date: 2024-10-17 04:39:25.0 +02:00
  }
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 10.21 ms
Input props
[
  "user" => App\Entity\User {#4105
    +avatar: null
    +cover: null
    +email: "bizdelnick@lemmy.ml"
    +username: "@bizdelnick@lemmy.ml"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729132691 {#4162
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
    +entries: Doctrine\ORM\PersistentCollection {#4099 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
    +posts: Doctrine\ORM\PersistentCollection {#4089 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
    +follows: Doctrine\ORM\PersistentCollection {#4220 …}
    +followers: Doctrine\ORM\PersistentCollection {#4213 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
    +reports: Doctrine\ORM\PersistentCollection {#4219 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
    +violations: Doctrine\ORM\PersistentCollection {#4216 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
    +awards: Doctrine\ORM\PersistentCollection {#4205 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
    +categories: Doctrine\ORM\PersistentCollection {#4206 …}
    -id: 69972
    -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
    +apId: "bizdelnick@lemmy.ml"
    +apProfileId: "https://lemmy.ml/u/bizdelnick"
    +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "bizdelnick"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729004370 {#4160
      date: 2024-10-15 16:59:30.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698940379 {#4159
      date: 2023-11-02 16:52:59.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#4604
  +width: 40
  +height: 40
  +user: App\Entity\User {#4105
    +avatar: null
    +cover: null
    +email: "bizdelnick@lemmy.ml"
    +username: "@bizdelnick@lemmy.ml"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729132691 {#4162
      date: 2024-10-17 04:38:11.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
    +entries: Doctrine\ORM\PersistentCollection {#4099 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
    +posts: Doctrine\ORM\PersistentCollection {#4089 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
    +follows: Doctrine\ORM\PersistentCollection {#4220 …}
    +followers: Doctrine\ORM\PersistentCollection {#4213 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
    +reports: Doctrine\ORM\PersistentCollection {#4219 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
    +violations: Doctrine\ORM\PersistentCollection {#4216 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
    +awards: Doctrine\ORM\PersistentCollection {#4205 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
    +categories: Doctrine\ORM\PersistentCollection {#4206 …}
    -id: 69972
    -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
    +apId: "bizdelnick@lemmy.ml"
    +apProfileId: "https://lemmy.ml/u/bizdelnick"
    +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "bizdelnick"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729004370 {#4160
      date: 2024-10-15 16:59:30.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698940379 {#4159
      date: 2023-11-02 16:52:59.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 1.19 ms
Input props
[
  "subject" => App\Entity\EntryComment {#4157
    +user: App\Entity\User {#4105
      +avatar: null
      +cover: null
      +email: "bizdelnick@lemmy.ml"
      +username: "@bizdelnick@lemmy.ml"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729132691 {#4162
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
      +entries: Doctrine\ORM\PersistentCollection {#4099 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
      +posts: Doctrine\ORM\PersistentCollection {#4089 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
      +follows: Doctrine\ORM\PersistentCollection {#4220 …}
      +followers: Doctrine\ORM\PersistentCollection {#4213 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
      +reports: Doctrine\ORM\PersistentCollection {#4219 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
      +violations: Doctrine\ORM\PersistentCollection {#4216 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
      +awards: Doctrine\ORM\PersistentCollection {#4205 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
      +categories: Doctrine\ORM\PersistentCollection {#4206 …}
      -id: 69972
      -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
      +apId: "bizdelnick@lemmy.ml"
      +apProfileId: "https://lemmy.ml/u/bizdelnick"
      +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "bizdelnick"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729004370 {#4160
        date: 2024-10-15 16:59:30.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698940379 {#4159
        date: 2023-11-02 16:52:59.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Try something like `IFS=‘|’ read f1 f2 < <(zenity <…>)` where f1, f2 etc. are variable names."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706445108 {#4167
      date: 2024-01-28 13:31:48.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4155 …}
    +nested: Doctrine\ORM\PersistentCollection {#4153 …}
    +votes: Doctrine\ORM\PersistentCollection {#4151 …}
    +reports: Doctrine\ORM\PersistentCollection {#4149 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4117 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4121 …}
    -id: 346905
    -bodyTs: "'etc':12 'f1':6,10 'f2':7,11 'if':4 'like':3 'name':15 'read':5 'someth':2 'tri':1 'variabl':14 'zeniti':8"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/7821979"
    +editedAt: DateTimeImmutable @1729132765 {#4103
      date: 2024-10-17 04:39:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706445108 {#4166
      date: 2024-01-28 13:31:48.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#4840
  +subject: App\Entity\EntryComment {#4157
    +user: App\Entity\User {#4105
      +avatar: null
      +cover: null
      +email: "bizdelnick@lemmy.ml"
      +username: "@bizdelnick@lemmy.ml"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729132691 {#4162
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
      +entries: Doctrine\ORM\PersistentCollection {#4099 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
      +posts: Doctrine\ORM\PersistentCollection {#4089 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
      +follows: Doctrine\ORM\PersistentCollection {#4220 …}
      +followers: Doctrine\ORM\PersistentCollection {#4213 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
      +reports: Doctrine\ORM\PersistentCollection {#4219 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
      +violations: Doctrine\ORM\PersistentCollection {#4216 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
      +awards: Doctrine\ORM\PersistentCollection {#4205 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
      +categories: Doctrine\ORM\PersistentCollection {#4206 …}
      -id: 69972
      -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
      +apId: "bizdelnick@lemmy.ml"
      +apProfileId: "https://lemmy.ml/u/bizdelnick"
      +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "bizdelnick"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729004370 {#4160
        date: 2024-10-15 16:59:30.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698940379 {#4159
        date: 2023-11-02 16:52:59.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Try something like `IFS=‘|’ read f1 f2 < <(zenity <…>)` where f1, f2 etc. are variable names."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706445108 {#4167
      date: 2024-01-28 13:31:48.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4155 …}
    +nested: Doctrine\ORM\PersistentCollection {#4153 …}
    +votes: Doctrine\ORM\PersistentCollection {#4151 …}
    +reports: Doctrine\ORM\PersistentCollection {#4149 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4117 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4121 …}
    -id: 346905
    -bodyTs: "'etc':12 'f1':6,10 'f2':7,11 'if':4 'like':3 'name':15 'read':5 'someth':2 'tri':1 'variabl':14 'zeniti':8"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/7821979"
    +editedAt: DateTimeImmutable @1729132765 {#4103
      date: 2024-10-17 04:39:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706445108 {#4166
      date: 2024-01-28 13:31:48.0 +01:00
    }
  }
  +formDest: "entry_comment"
  +showDownvote: true
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 1.13 ms
Input props
[
  "subject" => App\Entity\EntryComment {#4157
    +user: App\Entity\User {#4105
      +avatar: null
      +cover: null
      +email: "bizdelnick@lemmy.ml"
      +username: "@bizdelnick@lemmy.ml"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729132691 {#4162
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
      +entries: Doctrine\ORM\PersistentCollection {#4099 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
      +posts: Doctrine\ORM\PersistentCollection {#4089 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
      +follows: Doctrine\ORM\PersistentCollection {#4220 …}
      +followers: Doctrine\ORM\PersistentCollection {#4213 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
      +reports: Doctrine\ORM\PersistentCollection {#4219 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
      +violations: Doctrine\ORM\PersistentCollection {#4216 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
      +awards: Doctrine\ORM\PersistentCollection {#4205 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
      +categories: Doctrine\ORM\PersistentCollection {#4206 …}
      -id: 69972
      -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
      +apId: "bizdelnick@lemmy.ml"
      +apProfileId: "https://lemmy.ml/u/bizdelnick"
      +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "bizdelnick"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729004370 {#4160
        date: 2024-10-15 16:59:30.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698940379 {#4159
        date: 2023-11-02 16:52:59.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Try something like `IFS=‘|’ read f1 f2 < <(zenity <…>)` where f1, f2 etc. are variable names."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706445108 {#4167
      date: 2024-01-28 13:31:48.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4155 …}
    +nested: Doctrine\ORM\PersistentCollection {#4153 …}
    +votes: Doctrine\ORM\PersistentCollection {#4151 …}
    +reports: Doctrine\ORM\PersistentCollection {#4149 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4117 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4121 …}
    -id: 346905
    -bodyTs: "'etc':12 'f1':6,10 'f2':7,11 'if':4 'like':3 'name':15 'read':5 'someth':2 'tri':1 'variabl':14 'zeniti':8"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/7821979"
    +editedAt: DateTimeImmutable @1729132765 {#4103
      date: 2024-10-17 04:39:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706445108 {#4166
      date: 2024-01-28 13:31:48.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#4897
  +formDest: "entry_comment"
  +subject: App\Entity\EntryComment {#4157
    +user: App\Entity\User {#4105
      +avatar: null
      +cover: null
      +email: "bizdelnick@lemmy.ml"
      +username: "@bizdelnick@lemmy.ml"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729132691 {#4162
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
      +entries: Doctrine\ORM\PersistentCollection {#4099 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
      +posts: Doctrine\ORM\PersistentCollection {#4089 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
      +follows: Doctrine\ORM\PersistentCollection {#4220 …}
      +followers: Doctrine\ORM\PersistentCollection {#4213 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
      +reports: Doctrine\ORM\PersistentCollection {#4219 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
      +violations: Doctrine\ORM\PersistentCollection {#4216 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
      +awards: Doctrine\ORM\PersistentCollection {#4205 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
      +categories: Doctrine\ORM\PersistentCollection {#4206 …}
      -id: 69972
      -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
      +apId: "bizdelnick@lemmy.ml"
      +apProfileId: "https://lemmy.ml/u/bizdelnick"
      +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "bizdelnick"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729004370 {#4160
        date: 2024-10-15 16:59:30.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698940379 {#4159
        date: 2023-11-02 16:52:59.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Try something like `IFS=‘|’ read f1 f2 < <(zenity <…>)` where f1, f2 etc. are variable names."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706445108 {#4167
      date: 2024-01-28 13:31:48.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4155 …}
    +nested: Doctrine\ORM\PersistentCollection {#4153 …}
    +votes: Doctrine\ORM\PersistentCollection {#4151 …}
    +reports: Doctrine\ORM\PersistentCollection {#4149 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4117 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4121 …}
    -id: 346905
    -bodyTs: "'etc':12 'f1':6,10 'f2':7,11 'if':4 'like':3 'name':15 'read':5 'someth':2 'tri':1 'variabl':14 'zeniti':8"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/7821979"
    +editedAt: DateTimeImmutable @1729132765 {#4103
      date: 2024-10-17 04:39:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706445108 {#4166
      date: 2024-01-28 13:31:48.0 +01:00
    }
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
entry_comments_nested App\Twig\Components\EntryCommentsNestedComponent 12.0 MiB 8.60 ms
Input props
[
  "comment" => App\Entity\EntryComment {#4157
    +user: App\Entity\User {#4105
      +avatar: null
      +cover: null
      +email: "bizdelnick@lemmy.ml"
      +username: "@bizdelnick@lemmy.ml"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729132691 {#4162
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
      +entries: Doctrine\ORM\PersistentCollection {#4099 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
      +posts: Doctrine\ORM\PersistentCollection {#4089 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
      +follows: Doctrine\ORM\PersistentCollection {#4220 …}
      +followers: Doctrine\ORM\PersistentCollection {#4213 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
      +reports: Doctrine\ORM\PersistentCollection {#4219 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
      +violations: Doctrine\ORM\PersistentCollection {#4216 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
      +awards: Doctrine\ORM\PersistentCollection {#4205 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
      +categories: Doctrine\ORM\PersistentCollection {#4206 …}
      -id: 69972
      -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
      +apId: "bizdelnick@lemmy.ml"
      +apProfileId: "https://lemmy.ml/u/bizdelnick"
      +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "bizdelnick"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729004370 {#4160
        date: 2024-10-15 16:59:30.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698940379 {#4159
        date: 2023-11-02 16:52:59.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Try something like `IFS=‘|’ read f1 f2 < <(zenity <…>)` where f1, f2 etc. are variable names."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706445108 {#4167
      date: 2024-01-28 13:31:48.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4155 …}
    +nested: Doctrine\ORM\PersistentCollection {#4153 …}
    +votes: Doctrine\ORM\PersistentCollection {#4151 …}
    +reports: Doctrine\ORM\PersistentCollection {#4149 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4117 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4121 …}
    -id: 346905
    -bodyTs: "'etc':12 'f1':6,10 'f2':7,11 'if':4 'like':3 'name':15 'read':5 'someth':2 'tri':1 'variabl':14 'zeniti':8"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/7821979"
    +editedAt: DateTimeImmutable @1729132765 {#4103
      date: 2024-10-17 04:39:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706445108 {#4166
      date: 2024-01-28 13:31:48.0 +01:00
    }
  }
  "level" => 1
  "showNested" => true
  "view" => "tree"
]
Attributes
[
  "showNested" => true
]
Component
App\Twig\Components\EntryCommentsNestedComponent {#5144
  +comment: App\Entity\EntryComment {#4157
    +user: App\Entity\User {#4105
      +avatar: null
      +cover: null
      +email: "bizdelnick@lemmy.ml"
      +username: "@bizdelnick@lemmy.ml"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729132691 {#4162
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4106 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4108 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4101 …}
      +entries: Doctrine\ORM\PersistentCollection {#4099 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4096 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4094 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4092 …}
      +posts: Doctrine\ORM\PersistentCollection {#4089 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4087 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4085 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4082 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4080 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4078 …}
      +follows: Doctrine\ORM\PersistentCollection {#4220 …}
      +followers: Doctrine\ORM\PersistentCollection {#4213 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4203 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4192 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4165 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4223 …}
      +reports: Doctrine\ORM\PersistentCollection {#4219 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
      +violations: Doctrine\ORM\PersistentCollection {#4216 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4215 …}
      +awards: Doctrine\ORM\PersistentCollection {#4205 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4208 …}
      +categories: Doctrine\ORM\PersistentCollection {#4206 …}
      -id: 69972
      -password: "$2y$13$CGr7IxQzToe2BmATC8Cd3ObJJrmQleZeNnXYTNdX2hZv7nioY2uJa"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4204 …}
      +apId: "bizdelnick@lemmy.ml"
      +apProfileId: "https://lemmy.ml/u/bizdelnick"
      +apPublicUrl: "https://lemmy.ml/u/bizdelnick"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "bizdelnick"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729004370 {#4160
        date: 2024-10-15 16:59:30.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698940379 {#4159
        date: 2023-11-02 16:52:59.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Try something like `IFS=‘|’ read f1 f2 < <(zenity <…>)` where f1, f2 etc. are variable names."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706445108 {#4167
      date: 2024-01-28 13:31:48.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4155 …}
    +nested: Doctrine\ORM\PersistentCollection {#4153 …}
    +votes: Doctrine\ORM\PersistentCollection {#4151 …}
    +reports: Doctrine\ORM\PersistentCollection {#4149 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4117 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4121 …}
    -id: 346905
    -bodyTs: "'etc':12 'f1':6,10 'f2':7,11 'if':4 'like':3 'name':15 'read':5 'someth':2 'tri':1 'variabl':14 'zeniti':8"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/7821979"
    +editedAt: DateTimeImmutable @1729132765 {#4103
      date: 2024-10-17 04:39:25.0 +02:00
    }
    +createdAt: DateTimeImmutable @1706445108 {#4166
      date: 2024-01-28 13:31:48.0 +01:00
    }
  }
  +nestedComments: []
  +level: 1
  +view: "tree"
  -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …}
  -twig: Twig\Environment {#1252 …}
  -security: Symfony\Bundle\SecurityBundle\Security {#1101 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
entry_comment App\Twig\Components\EntryCommentComponent 12.0 MiB 12.56 ms
Input props
[
  "comment" => App\Entity\EntryComment {#4195
    +user: App\Entity\User {#4178
      +avatar: null
      +cover: null
      +email: "somethingsomethingidk@lemmy.world"
      +username: "@somethingsomethingidk@lemmy.world"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729129826 {#4200
        date: 2024-10-17 03:50:26.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
      +entries: Doctrine\ORM\PersistentCollection {#4171 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
      +posts: Doctrine\ORM\PersistentCollection {#4231 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
      +follows: Doctrine\ORM\PersistentCollection {#4243 …}
      +followers: Doctrine\ORM\PersistentCollection {#4245 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
      +reports: Doctrine\ORM\PersistentCollection {#4255 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
      +violations: Doctrine\ORM\PersistentCollection {#4259 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
      +awards: Doctrine\ORM\PersistentCollection {#4263 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
      +categories: Doctrine\ORM\PersistentCollection {#4267 …}
      -id: 82689
      -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
      +apId: "somethingsomethingidk@lemmy.world"
      +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
      +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.world/inbox"
      +apDomain: "lemmy.world"
      +apPreferredUsername: "somethingsomethingidk"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727074285 {#4197
        date: 2024-09-23 08:51:25.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1702742938 {#4190
        date: 2023-12-16 17:08:58.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "I have an array based solution but it doesn’t solve the cases of changing the order or empty fields."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1706443234 {#4201
      date: 2024-01-28 13:00:34.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4193 …}
    +nested: Doctrine\ORM\PersistentCollection {#4191 …}
    +votes: Doctrine\ORM\PersistentCollection {#4189 …}
    +reports: Doctrine\ORM\PersistentCollection {#4186 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4182 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4180 …}
    -id: 346873
    -bodyTs: "'array':4 'base':5 'case':13 'chang':15 'doesn':9 'empti':19 'field':20 'order':17 'solut':6 'solv':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/7100507"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706443234 {#4199
      date: 2024-01-28 13:00:34.0 +01:00
    }
  }
  "showNested" => true
  "dateAsUrl" => false
  "showMagazineName" => false
  "showEntryTitle" => false
]
Attributes
[]
Component
App\Twig\Components\EntryCommentComponent {#5228
  +comment: App\Entity\EntryComment {#4195
    +user: App\Entity\User {#4178
      +avatar: null
      +cover: null
      +email: "somethingsomethingidk@lemmy.world"
      +username: "@somethingsomethingidk@lemmy.world"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729129826 {#4200
        date: 2024-10-17 03:50:26.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
      +entries: Doctrine\ORM\PersistentCollection {#4171 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
      +posts: Doctrine\ORM\PersistentCollection {#4231 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
      +follows: Doctrine\ORM\PersistentCollection {#4243 …}
      +followers: Doctrine\ORM\PersistentCollection {#4245 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
      +reports: Doctrine\ORM\PersistentCollection {#4255 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
      +violations: Doctrine\ORM\PersistentCollection {#4259 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
      +awards: Doctrine\ORM\PersistentCollection {#4263 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
      +categories: Doctrine\ORM\PersistentCollection {#4267 …}
      -id: 82689
      -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
      +apId: "somethingsomethingidk@lemmy.world"
      +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
      +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.world/inbox"
      +apDomain: "lemmy.world"
      +apPreferredUsername: "somethingsomethingidk"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727074285 {#4197
        date: 2024-09-23 08:51:25.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1702742938 {#4190
        date: 2023-12-16 17:08:58.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "I have an array based solution but it doesn’t solve the cases of changing the order or empty fields."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1706443234 {#4201
      date: 2024-01-28 13:00:34.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4193 …}
    +nested: Doctrine\ORM\PersistentCollection {#4191 …}
    +votes: Doctrine\ORM\PersistentCollection {#4189 …}
    +reports: Doctrine\ORM\PersistentCollection {#4186 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4182 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4180 …}
    -id: 346873
    -bodyTs: "'array':4 'base':5 'case':13 'chang':15 'doesn':9 'empti':19 'field':20 'order':17 'solut':6 'solv':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/7100507"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706443234 {#4199
      date: 2024-01-28 13:00:34.0 +01:00
    }
  }
  +showMagazineName: false
  +showEntryTitle: false
  +showNested: true
  +level: 1
  +canSeeTrash: false
  +dateAsUrl: false
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.16 ms
Input props
[
  "user" => App\Entity\User {#4178
    +avatar: null
    +cover: null
    +email: "somethingsomethingidk@lemmy.world"
    +username: "@somethingsomethingidk@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729129826 {#4200
      date: 2024-10-17 03:50:26.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
    +entries: Doctrine\ORM\PersistentCollection {#4171 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
    +posts: Doctrine\ORM\PersistentCollection {#4231 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
    +follows: Doctrine\ORM\PersistentCollection {#4243 …}
    +followers: Doctrine\ORM\PersistentCollection {#4245 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
    +reports: Doctrine\ORM\PersistentCollection {#4255 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
    +violations: Doctrine\ORM\PersistentCollection {#4259 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
    +awards: Doctrine\ORM\PersistentCollection {#4263 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
    +categories: Doctrine\ORM\PersistentCollection {#4267 …}
    -id: 82689
    -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
    +apId: "somethingsomethingidk@lemmy.world"
    +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
    +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "somethingsomethingidk"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1727074285 {#4197
      date: 2024-09-23 08:51:25.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1702742938 {#4190
      date: 2023-12-16 17:08:58.0 +01:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#5273
  +user: App\Entity\User {#4178
    +avatar: null
    +cover: null
    +email: "somethingsomethingidk@lemmy.world"
    +username: "@somethingsomethingidk@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729129826 {#4200
      date: 2024-10-17 03:50:26.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
    +entries: Doctrine\ORM\PersistentCollection {#4171 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
    +posts: Doctrine\ORM\PersistentCollection {#4231 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
    +follows: Doctrine\ORM\PersistentCollection {#4243 …}
    +followers: Doctrine\ORM\PersistentCollection {#4245 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
    +reports: Doctrine\ORM\PersistentCollection {#4255 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
    +violations: Doctrine\ORM\PersistentCollection {#4259 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
    +awards: Doctrine\ORM\PersistentCollection {#4263 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
    +categories: Doctrine\ORM\PersistentCollection {#4267 …}
    -id: 82689
    -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
    +apId: "somethingsomethingidk@lemmy.world"
    +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
    +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "somethingsomethingidk"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1727074285 {#4197
      date: 2024-09-23 08:51:25.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1702742938 {#4190
      date: 2023-12-16 17:08:58.0 +01:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.15 ms
Input props
[
  "date" => DateTimeImmutable @1706443234 {#4199
    date: 2024-01-28 13:00:34.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#5328
  +date: DateTimeImmutable @1706443234 {#4199
    date: 2024-01-28 13:00:34.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.09 ms
Input props
[
  "createdAt" => DateTimeImmutable @1706443234 {#4199
    date: 2024-01-28 13:00:34.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#5382
  +createdAt: DateTimeImmutable @1706443234 {#4199
    date: 2024-01-28 13:00:34.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.15 ms
Input props
[
  "user" => App\Entity\User {#4178
    +avatar: null
    +cover: null
    +email: "somethingsomethingidk@lemmy.world"
    +username: "@somethingsomethingidk@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729129826 {#4200
      date: 2024-10-17 03:50:26.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
    +entries: Doctrine\ORM\PersistentCollection {#4171 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
    +posts: Doctrine\ORM\PersistentCollection {#4231 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
    +follows: Doctrine\ORM\PersistentCollection {#4243 …}
    +followers: Doctrine\ORM\PersistentCollection {#4245 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
    +reports: Doctrine\ORM\PersistentCollection {#4255 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
    +violations: Doctrine\ORM\PersistentCollection {#4259 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
    +awards: Doctrine\ORM\PersistentCollection {#4263 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
    +categories: Doctrine\ORM\PersistentCollection {#4267 …}
    -id: 82689
    -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
    +apId: "somethingsomethingidk@lemmy.world"
    +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
    +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "somethingsomethingidk"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1727074285 {#4197
      date: 2024-09-23 08:51:25.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1702742938 {#4190
      date: 2023-12-16 17:08:58.0 +01:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#5436
  +width: 40
  +height: 40
  +user: App\Entity\User {#4178
    +avatar: null
    +cover: null
    +email: "somethingsomethingidk@lemmy.world"
    +username: "@somethingsomethingidk@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729129826 {#4200
      date: 2024-10-17 03:50:26.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
    +entries: Doctrine\ORM\PersistentCollection {#4171 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
    +posts: Doctrine\ORM\PersistentCollection {#4231 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
    +follows: Doctrine\ORM\PersistentCollection {#4243 …}
    +followers: Doctrine\ORM\PersistentCollection {#4245 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
    +reports: Doctrine\ORM\PersistentCollection {#4255 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
    +violations: Doctrine\ORM\PersistentCollection {#4259 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
    +awards: Doctrine\ORM\PersistentCollection {#4263 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
    +categories: Doctrine\ORM\PersistentCollection {#4267 …}
    -id: 82689
    -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
    +apId: "somethingsomethingidk@lemmy.world"
    +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
    +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "somethingsomethingidk"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1727074285 {#4197
      date: 2024-09-23 08:51:25.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1702742938 {#4190
      date: 2023-12-16 17:08:58.0 +01:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.42 ms
Input props
[
  "subject" => App\Entity\EntryComment {#4195
    +user: App\Entity\User {#4178
      +avatar: null
      +cover: null
      +email: "somethingsomethingidk@lemmy.world"
      +username: "@somethingsomethingidk@lemmy.world"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729129826 {#4200
        date: 2024-10-17 03:50:26.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
      +entries: Doctrine\ORM\PersistentCollection {#4171 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
      +posts: Doctrine\ORM\PersistentCollection {#4231 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
      +follows: Doctrine\ORM\PersistentCollection {#4243 …}
      +followers: Doctrine\ORM\PersistentCollection {#4245 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
      +reports: Doctrine\ORM\PersistentCollection {#4255 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
      +violations: Doctrine\ORM\PersistentCollection {#4259 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
      +awards: Doctrine\ORM\PersistentCollection {#4263 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
      +categories: Doctrine\ORM\PersistentCollection {#4267 …}
      -id: 82689
      -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
      +apId: "somethingsomethingidk@lemmy.world"
      +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
      +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.world/inbox"
      +apDomain: "lemmy.world"
      +apPreferredUsername: "somethingsomethingidk"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727074285 {#4197
        date: 2024-09-23 08:51:25.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1702742938 {#4190
        date: 2023-12-16 17:08:58.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "I have an array based solution but it doesn’t solve the cases of changing the order or empty fields."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1706443234 {#4201
      date: 2024-01-28 13:00:34.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4193 …}
    +nested: Doctrine\ORM\PersistentCollection {#4191 …}
    +votes: Doctrine\ORM\PersistentCollection {#4189 …}
    +reports: Doctrine\ORM\PersistentCollection {#4186 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4182 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4180 …}
    -id: 346873
    -bodyTs: "'array':4 'base':5 'case':13 'chang':15 'doesn':9 'empti':19 'field':20 'order':17 'solut':6 'solv':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/7100507"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706443234 {#4199
      date: 2024-01-28 13:00:34.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#5639
  +subject: App\Entity\EntryComment {#4195
    +user: App\Entity\User {#4178
      +avatar: null
      +cover: null
      +email: "somethingsomethingidk@lemmy.world"
      +username: "@somethingsomethingidk@lemmy.world"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729129826 {#4200
        date: 2024-10-17 03:50:26.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
      +entries: Doctrine\ORM\PersistentCollection {#4171 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
      +posts: Doctrine\ORM\PersistentCollection {#4231 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
      +follows: Doctrine\ORM\PersistentCollection {#4243 …}
      +followers: Doctrine\ORM\PersistentCollection {#4245 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
      +reports: Doctrine\ORM\PersistentCollection {#4255 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
      +violations: Doctrine\ORM\PersistentCollection {#4259 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
      +awards: Doctrine\ORM\PersistentCollection {#4263 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
      +categories: Doctrine\ORM\PersistentCollection {#4267 …}
      -id: 82689
      -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
      +apId: "somethingsomethingidk@lemmy.world"
      +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
      +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.world/inbox"
      +apDomain: "lemmy.world"
      +apPreferredUsername: "somethingsomethingidk"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727074285 {#4197
        date: 2024-09-23 08:51:25.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1702742938 {#4190
        date: 2023-12-16 17:08:58.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "I have an array based solution but it doesn’t solve the cases of changing the order or empty fields."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1706443234 {#4201
      date: 2024-01-28 13:00:34.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4193 …}
    +nested: Doctrine\ORM\PersistentCollection {#4191 …}
    +votes: Doctrine\ORM\PersistentCollection {#4189 …}
    +reports: Doctrine\ORM\PersistentCollection {#4186 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4182 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4180 …}
    -id: 346873
    -bodyTs: "'array':4 'base':5 'case':13 'chang':15 'doesn':9 'empti':19 'field':20 'order':17 'solut':6 'solv':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/7100507"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706443234 {#4199
      date: 2024-01-28 13:00:34.0 +01:00
    }
  }
  +formDest: "entry_comment"
  +showDownvote: true
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 0.71 ms
Input props
[
  "subject" => App\Entity\EntryComment {#4195
    +user: App\Entity\User {#4178
      +avatar: null
      +cover: null
      +email: "somethingsomethingidk@lemmy.world"
      +username: "@somethingsomethingidk@lemmy.world"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729129826 {#4200
        date: 2024-10-17 03:50:26.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
      +entries: Doctrine\ORM\PersistentCollection {#4171 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
      +posts: Doctrine\ORM\PersistentCollection {#4231 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
      +follows: Doctrine\ORM\PersistentCollection {#4243 …}
      +followers: Doctrine\ORM\PersistentCollection {#4245 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
      +reports: Doctrine\ORM\PersistentCollection {#4255 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
      +violations: Doctrine\ORM\PersistentCollection {#4259 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
      +awards: Doctrine\ORM\PersistentCollection {#4263 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
      +categories: Doctrine\ORM\PersistentCollection {#4267 …}
      -id: 82689
      -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
      +apId: "somethingsomethingidk@lemmy.world"
      +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
      +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.world/inbox"
      +apDomain: "lemmy.world"
      +apPreferredUsername: "somethingsomethingidk"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727074285 {#4197
        date: 2024-09-23 08:51:25.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1702742938 {#4190
        date: 2023-12-16 17:08:58.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "I have an array based solution but it doesn’t solve the cases of changing the order or empty fields."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1706443234 {#4201
      date: 2024-01-28 13:00:34.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4193 …}
    +nested: Doctrine\ORM\PersistentCollection {#4191 …}
    +votes: Doctrine\ORM\PersistentCollection {#4189 …}
    +reports: Doctrine\ORM\PersistentCollection {#4186 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4182 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4180 …}
    -id: 346873
    -bodyTs: "'array':4 'base':5 'case':13 'chang':15 'doesn':9 'empti':19 'field':20 'order':17 'solut':6 'solv':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/7100507"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706443234 {#4199
      date: 2024-01-28 13:00:34.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#5696
  +formDest: "entry_comment"
  +subject: App\Entity\EntryComment {#4195
    +user: App\Entity\User {#4178
      +avatar: null
      +cover: null
      +email: "somethingsomethingidk@lemmy.world"
      +username: "@somethingsomethingidk@lemmy.world"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729129826 {#4200
        date: 2024-10-17 03:50:26.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
      +entries: Doctrine\ORM\PersistentCollection {#4171 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
      +posts: Doctrine\ORM\PersistentCollection {#4231 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
      +follows: Doctrine\ORM\PersistentCollection {#4243 …}
      +followers: Doctrine\ORM\PersistentCollection {#4245 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
      +reports: Doctrine\ORM\PersistentCollection {#4255 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
      +violations: Doctrine\ORM\PersistentCollection {#4259 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
      +awards: Doctrine\ORM\PersistentCollection {#4263 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
      +categories: Doctrine\ORM\PersistentCollection {#4267 …}
      -id: 82689
      -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
      +apId: "somethingsomethingidk@lemmy.world"
      +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
      +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.world/inbox"
      +apDomain: "lemmy.world"
      +apPreferredUsername: "somethingsomethingidk"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727074285 {#4197
        date: 2024-09-23 08:51:25.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1702742938 {#4190
        date: 2023-12-16 17:08:58.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "I have an array based solution but it doesn’t solve the cases of changing the order or empty fields."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1706443234 {#4201
      date: 2024-01-28 13:00:34.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4193 …}
    +nested: Doctrine\ORM\PersistentCollection {#4191 …}
    +votes: Doctrine\ORM\PersistentCollection {#4189 …}
    +reports: Doctrine\ORM\PersistentCollection {#4186 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4182 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4180 …}
    -id: 346873
    -bodyTs: "'array':4 'base':5 'case':13 'chang':15 'doesn':9 'empti':19 'field':20 'order':17 'solut':6 'solv':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/7100507"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706443234 {#4199
      date: 2024-01-28 13:00:34.0 +01:00
    }
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
entry_comments_nested App\Twig\Components\EntryCommentsNestedComponent 12.0 MiB 1.03 ms
Input props
[
  "comment" => App\Entity\EntryComment {#4195
    +user: App\Entity\User {#4178
      +avatar: null
      +cover: null
      +email: "somethingsomethingidk@lemmy.world"
      +username: "@somethingsomethingidk@lemmy.world"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729129826 {#4200
        date: 2024-10-17 03:50:26.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
      +entries: Doctrine\ORM\PersistentCollection {#4171 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
      +posts: Doctrine\ORM\PersistentCollection {#4231 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
      +follows: Doctrine\ORM\PersistentCollection {#4243 …}
      +followers: Doctrine\ORM\PersistentCollection {#4245 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
      +reports: Doctrine\ORM\PersistentCollection {#4255 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
      +violations: Doctrine\ORM\PersistentCollection {#4259 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
      +awards: Doctrine\ORM\PersistentCollection {#4263 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
      +categories: Doctrine\ORM\PersistentCollection {#4267 …}
      -id: 82689
      -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
      +apId: "somethingsomethingidk@lemmy.world"
      +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
      +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.world/inbox"
      +apDomain: "lemmy.world"
      +apPreferredUsername: "somethingsomethingidk"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727074285 {#4197
        date: 2024-09-23 08:51:25.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1702742938 {#4190
        date: 2023-12-16 17:08:58.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "I have an array based solution but it doesn’t solve the cases of changing the order or empty fields."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1706443234 {#4201
      date: 2024-01-28 13:00:34.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4193 …}
    +nested: Doctrine\ORM\PersistentCollection {#4191 …}
    +votes: Doctrine\ORM\PersistentCollection {#4189 …}
    +reports: Doctrine\ORM\PersistentCollection {#4186 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4182 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4180 …}
    -id: 346873
    -bodyTs: "'array':4 'base':5 'case':13 'chang':15 'doesn':9 'empti':19 'field':20 'order':17 'solut':6 'solv':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/7100507"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706443234 {#4199
      date: 2024-01-28 13:00:34.0 +01:00
    }
  }
  "level" => 1
  "showNested" => true
  "view" => "tree"
]
Attributes
[
  "showNested" => true
]
Component
App\Twig\Components\EntryCommentsNestedComponent {#5936
  +comment: App\Entity\EntryComment {#4195
    +user: App\Entity\User {#4178
      +avatar: null
      +cover: null
      +email: "somethingsomethingidk@lemmy.world"
      +username: "@somethingsomethingidk@lemmy.world"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729129826 {#4200
        date: 2024-10-17 03:50:26.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4177 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4175 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4173 …}
      +entries: Doctrine\ORM\PersistentCollection {#4171 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4169 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4228 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4229 …}
      +posts: Doctrine\ORM\PersistentCollection {#4231 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4233 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4235 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4237 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4239 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4241 …}
      +follows: Doctrine\ORM\PersistentCollection {#4243 …}
      +followers: Doctrine\ORM\PersistentCollection {#4245 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4247 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4249 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4251 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4253 …}
      +reports: Doctrine\ORM\PersistentCollection {#4255 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4257 …}
      +violations: Doctrine\ORM\PersistentCollection {#4259 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4261 …}
      +awards: Doctrine\ORM\PersistentCollection {#4263 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4265 …}
      +categories: Doctrine\ORM\PersistentCollection {#4267 …}
      -id: 82689
      -password: "$2y$13$10EOb23guscOyksRxXp04.TSeVR.xys3NKaSrLwkvQWFkVPGs8PZO"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4269 …}
      +apId: "somethingsomethingidk@lemmy.world"
      +apProfileId: "https://lemmy.world/u/somethingsomethingidk"
      +apPublicUrl: "https://lemmy.world/u/somethingsomethingidk"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.world/inbox"
      +apDomain: "lemmy.world"
      +apPreferredUsername: "somethingsomethingidk"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727074285 {#4197
        date: 2024-09-23 08:51:25.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1702742938 {#4190
        date: 2023-12-16 17:08:58.0 +01:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "I have an array based solution but it doesn’t solve the cases of changing the order or empty fields."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1706443234 {#4201
      date: 2024-01-28 13:00:34.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4193 …}
    +nested: Doctrine\ORM\PersistentCollection {#4191 …}
    +votes: Doctrine\ORM\PersistentCollection {#4189 …}
    +reports: Doctrine\ORM\PersistentCollection {#4186 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4182 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4180 …}
    -id: 346873
    -bodyTs: "'array':4 'base':5 'case':13 'chang':15 'doesn':9 'empti':19 'field':20 'order':17 'solut':6 'solv':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/7100507"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706443234 {#4199
      date: 2024-01-28 13:00:34.0 +01:00
    }
  }
  +nestedComments: []
  +level: 1
  +view: "tree"
  -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …}
  -twig: Twig\Environment {#1252 …}
  -security: Symfony\Bundle\SecurityBundle\Security {#1101 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
entry_comment App\Twig\Components\EntryCommentComponent 12.0 MiB 94.82 ms
Input props
[
  "comment" => App\Entity\EntryComment {#4276
    +user: App\Entity\User {#4289
      +avatar: null
      +cover: null
      +email: "Flyswat@lemmy.dbzer0.com"
      +username: "@Flyswat@lemmy.dbzer0.com"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729120937 {#4273
        date: 2024-10-17 01:22:17.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
      +entries: Doctrine\ORM\PersistentCollection {#4296 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
      +posts: Doctrine\ORM\PersistentCollection {#4304 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
      +follows: Doctrine\ORM\PersistentCollection {#4316 …}
      +followers: Doctrine\ORM\PersistentCollection {#4318 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
      +reports: Doctrine\ORM\PersistentCollection {#4328 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
      +violations: Doctrine\ORM\PersistentCollection {#4332 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
      +awards: Doctrine\ORM\PersistentCollection {#4336 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
      +categories: Doctrine\ORM\PersistentCollection {#4340 …}
      -id: 46103
      -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
      +apId: "Flyswat@lemmy.dbzer0.com"
      +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
      +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
      +apDomain: "lemmy.dbzer0.com"
      +apPreferredUsername: "Flyswat"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1719729962 {#4274
        date: 2024-06-30 08:46:02.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694678470 {#4275
        date: 2023-09-14 10:01:10.0 +02:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      > If you fill both fields the output in the terminal is `file|this is some text|`\n
      \n
      Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1729128706 {#4271
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4277 …}
    +nested: Doctrine\ORM\PersistentCollection {#4279 …}
    +votes: Doctrine\ORM\PersistentCollection {#4281 …}
    +reports: Doctrine\ORM\PersistentCollection {#4283 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
    -id: 346800
    -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.dbzer0.com/comment/7219040"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706437319 {#4272
      date: 2024-01-28 11:21:59.0 +01:00
    }
  }
  "showNested" => true
  "dateAsUrl" => false
  "showMagazineName" => false
  "showEntryTitle" => false
]
Attributes
[]
Component
App\Twig\Components\EntryCommentComponent {#6006
  +comment: App\Entity\EntryComment {#4276
    +user: App\Entity\User {#4289
      +avatar: null
      +cover: null
      +email: "Flyswat@lemmy.dbzer0.com"
      +username: "@Flyswat@lemmy.dbzer0.com"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729120937 {#4273
        date: 2024-10-17 01:22:17.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
      +entries: Doctrine\ORM\PersistentCollection {#4296 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
      +posts: Doctrine\ORM\PersistentCollection {#4304 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
      +follows: Doctrine\ORM\PersistentCollection {#4316 …}
      +followers: Doctrine\ORM\PersistentCollection {#4318 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
      +reports: Doctrine\ORM\PersistentCollection {#4328 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
      +violations: Doctrine\ORM\PersistentCollection {#4332 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
      +awards: Doctrine\ORM\PersistentCollection {#4336 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
      +categories: Doctrine\ORM\PersistentCollection {#4340 …}
      -id: 46103
      -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
      +apId: "Flyswat@lemmy.dbzer0.com"
      +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
      +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
      +apDomain: "lemmy.dbzer0.com"
      +apPreferredUsername: "Flyswat"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1719729962 {#4274
        date: 2024-06-30 08:46:02.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694678470 {#4275
        date: 2023-09-14 10:01:10.0 +02:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      > If you fill both fields the output in the terminal is `file|this is some text|`\n
      \n
      Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1729128706 {#4271
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4277 …}
    +nested: Doctrine\ORM\PersistentCollection {#4279 …}
    +votes: Doctrine\ORM\PersistentCollection {#4281 …}
    +reports: Doctrine\ORM\PersistentCollection {#4283 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
    -id: 346800
    -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.dbzer0.com/comment/7219040"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706437319 {#4272
      date: 2024-01-28 11:21:59.0 +01:00
    }
  }
  +showMagazineName: false
  +showEntryTitle: false
  +showNested: true
  +level: 1
  +canSeeTrash: false
  +dateAsUrl: false
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.15 ms
Input props
[
  "user" => App\Entity\User {#4289
    +avatar: null
    +cover: null
    +email: "Flyswat@lemmy.dbzer0.com"
    +username: "@Flyswat@lemmy.dbzer0.com"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729120937 {#4273
      date: 2024-10-17 01:22:17.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
    +entries: Doctrine\ORM\PersistentCollection {#4296 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
    +posts: Doctrine\ORM\PersistentCollection {#4304 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
    +follows: Doctrine\ORM\PersistentCollection {#4316 …}
    +followers: Doctrine\ORM\PersistentCollection {#4318 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
    +reports: Doctrine\ORM\PersistentCollection {#4328 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
    +violations: Doctrine\ORM\PersistentCollection {#4332 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
    +awards: Doctrine\ORM\PersistentCollection {#4336 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
    +categories: Doctrine\ORM\PersistentCollection {#4340 …}
    -id: 46103
    -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
    +apId: "Flyswat@lemmy.dbzer0.com"
    +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
    +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
    +apDomain: "lemmy.dbzer0.com"
    +apPreferredUsername: "Flyswat"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1719729962 {#4274
      date: 2024-06-30 08:46:02.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694678470 {#4275
      date: 2023-09-14 10:01:10.0 +02:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#6051
  +user: App\Entity\User {#4289
    +avatar: null
    +cover: null
    +email: "Flyswat@lemmy.dbzer0.com"
    +username: "@Flyswat@lemmy.dbzer0.com"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729120937 {#4273
      date: 2024-10-17 01:22:17.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
    +entries: Doctrine\ORM\PersistentCollection {#4296 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
    +posts: Doctrine\ORM\PersistentCollection {#4304 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
    +follows: Doctrine\ORM\PersistentCollection {#4316 …}
    +followers: Doctrine\ORM\PersistentCollection {#4318 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
    +reports: Doctrine\ORM\PersistentCollection {#4328 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
    +violations: Doctrine\ORM\PersistentCollection {#4332 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
    +awards: Doctrine\ORM\PersistentCollection {#4336 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
    +categories: Doctrine\ORM\PersistentCollection {#4340 …}
    -id: 46103
    -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
    +apId: "Flyswat@lemmy.dbzer0.com"
    +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
    +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
    +apDomain: "lemmy.dbzer0.com"
    +apPreferredUsername: "Flyswat"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1719729962 {#4274
      date: 2024-06-30 08:46:02.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694678470 {#4275
      date: 2023-09-14 10:01:10.0 +02:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.14 ms
Input props
[
  "date" => DateTimeImmutable @1706437319 {#4272
    date: 2024-01-28 11:21:59.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#6106
  +date: DateTimeImmutable @1706437319 {#4272
    date: 2024-01-28 11:21:59.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.12 ms
Input props
[
  "createdAt" => DateTimeImmutable @1706437319 {#4272
    date: 2024-01-28 11:21:59.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#6160
  +createdAt: DateTimeImmutable @1706437319 {#4272
    date: 2024-01-28 11:21:59.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 2.04 ms
Input props
[
  "user" => App\Entity\User {#4289
    +avatar: null
    +cover: null
    +email: "Flyswat@lemmy.dbzer0.com"
    +username: "@Flyswat@lemmy.dbzer0.com"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729120937 {#4273
      date: 2024-10-17 01:22:17.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
    +entries: Doctrine\ORM\PersistentCollection {#4296 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
    +posts: Doctrine\ORM\PersistentCollection {#4304 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
    +follows: Doctrine\ORM\PersistentCollection {#4316 …}
    +followers: Doctrine\ORM\PersistentCollection {#4318 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
    +reports: Doctrine\ORM\PersistentCollection {#4328 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
    +violations: Doctrine\ORM\PersistentCollection {#4332 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
    +awards: Doctrine\ORM\PersistentCollection {#4336 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
    +categories: Doctrine\ORM\PersistentCollection {#4340 …}
    -id: 46103
    -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
    +apId: "Flyswat@lemmy.dbzer0.com"
    +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
    +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
    +apDomain: "lemmy.dbzer0.com"
    +apPreferredUsername: "Flyswat"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1719729962 {#4274
      date: 2024-06-30 08:46:02.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694678470 {#4275
      date: 2023-09-14 10:01:10.0 +02:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#6214
  +width: 40
  +height: 40
  +user: App\Entity\User {#4289
    +avatar: null
    +cover: null
    +email: "Flyswat@lemmy.dbzer0.com"
    +username: "@Flyswat@lemmy.dbzer0.com"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729120937 {#4273
      date: 2024-10-17 01:22:17.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
    +entries: Doctrine\ORM\PersistentCollection {#4296 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
    +posts: Doctrine\ORM\PersistentCollection {#4304 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
    +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
    +follows: Doctrine\ORM\PersistentCollection {#4316 …}
    +followers: Doctrine\ORM\PersistentCollection {#4318 …}
    +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
    +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
    +reports: Doctrine\ORM\PersistentCollection {#4328 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
    +violations: Doctrine\ORM\PersistentCollection {#4332 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
    +awards: Doctrine\ORM\PersistentCollection {#4336 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
    +categories: Doctrine\ORM\PersistentCollection {#4340 …}
    -id: 46103
    -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
    +apId: "Flyswat@lemmy.dbzer0.com"
    +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
    +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
    +apDomain: "lemmy.dbzer0.com"
    +apPreferredUsername: "Flyswat"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1719729962 {#4274
      date: 2024-06-30 08:46:02.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694678470 {#4275
      date: 2023-09-14 10:01:10.0 +02:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 2.36 ms
Input props
[
  "subject" => App\Entity\EntryComment {#4276
    +user: App\Entity\User {#4289
      +avatar: null
      +cover: null
      +email: "Flyswat@lemmy.dbzer0.com"
      +username: "@Flyswat@lemmy.dbzer0.com"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729120937 {#4273
        date: 2024-10-17 01:22:17.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
      +entries: Doctrine\ORM\PersistentCollection {#4296 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
      +posts: Doctrine\ORM\PersistentCollection {#4304 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
      +follows: Doctrine\ORM\PersistentCollection {#4316 …}
      +followers: Doctrine\ORM\PersistentCollection {#4318 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
      +reports: Doctrine\ORM\PersistentCollection {#4328 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
      +violations: Doctrine\ORM\PersistentCollection {#4332 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
      +awards: Doctrine\ORM\PersistentCollection {#4336 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
      +categories: Doctrine\ORM\PersistentCollection {#4340 …}
      -id: 46103
      -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
      +apId: "Flyswat@lemmy.dbzer0.com"
      +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
      +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
      +apDomain: "lemmy.dbzer0.com"
      +apPreferredUsername: "Flyswat"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1719729962 {#4274
        date: 2024-06-30 08:46:02.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694678470 {#4275
        date: 2023-09-14 10:01:10.0 +02:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      > If you fill both fields the output in the terminal is `file|this is some text|`\n
      \n
      Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1729128706 {#4271
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4277 …}
    +nested: Doctrine\ORM\PersistentCollection {#4279 …}
    +votes: Doctrine\ORM\PersistentCollection {#4281 …}
    +reports: Doctrine\ORM\PersistentCollection {#4283 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
    -id: 346800
    -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.dbzer0.com/comment/7219040"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706437319 {#4272
      date: 2024-01-28 11:21:59.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#6436
  +subject: App\Entity\EntryComment {#4276
    +user: App\Entity\User {#4289
      +avatar: null
      +cover: null
      +email: "Flyswat@lemmy.dbzer0.com"
      +username: "@Flyswat@lemmy.dbzer0.com"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729120937 {#4273
        date: 2024-10-17 01:22:17.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
      +entries: Doctrine\ORM\PersistentCollection {#4296 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
      +posts: Doctrine\ORM\PersistentCollection {#4304 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
      +follows: Doctrine\ORM\PersistentCollection {#4316 …}
      +followers: Doctrine\ORM\PersistentCollection {#4318 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
      +reports: Doctrine\ORM\PersistentCollection {#4328 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
      +violations: Doctrine\ORM\PersistentCollection {#4332 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
      +awards: Doctrine\ORM\PersistentCollection {#4336 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
      +categories: Doctrine\ORM\PersistentCollection {#4340 …}
      -id: 46103
      -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
      +apId: "Flyswat@lemmy.dbzer0.com"
      +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
      +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
      +apDomain: "lemmy.dbzer0.com"
      +apPreferredUsername: "Flyswat"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1719729962 {#4274
        date: 2024-06-30 08:46:02.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694678470 {#4275
        date: 2023-09-14 10:01:10.0 +02:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      > If you fill both fields the output in the terminal is `file|this is some text|`\n
      \n
      Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1729128706 {#4271
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4277 …}
    +nested: Doctrine\ORM\PersistentCollection {#4279 …}
    +votes: Doctrine\ORM\PersistentCollection {#4281 …}
    +reports: Doctrine\ORM\PersistentCollection {#4283 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
    -id: 346800
    -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.dbzer0.com/comment/7219040"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706437319 {#4272
      date: 2024-01-28 11:21:59.0 +01:00
    }
  }
  +formDest: "entry_comment"
  +showDownvote: true
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 6.56 ms
Input props
[
  "subject" => App\Entity\EntryComment {#4276
    +user: App\Entity\User {#4289
      +avatar: null
      +cover: null
      +email: "Flyswat@lemmy.dbzer0.com"
      +username: "@Flyswat@lemmy.dbzer0.com"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729120937 {#4273
        date: 2024-10-17 01:22:17.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
      +entries: Doctrine\ORM\PersistentCollection {#4296 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
      +posts: Doctrine\ORM\PersistentCollection {#4304 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
      +follows: Doctrine\ORM\PersistentCollection {#4316 …}
      +followers: Doctrine\ORM\PersistentCollection {#4318 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
      +reports: Doctrine\ORM\PersistentCollection {#4328 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
      +violations: Doctrine\ORM\PersistentCollection {#4332 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
      +awards: Doctrine\ORM\PersistentCollection {#4336 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
      +categories: Doctrine\ORM\PersistentCollection {#4340 …}
      -id: 46103
      -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
      +apId: "Flyswat@lemmy.dbzer0.com"
      +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
      +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
      +apDomain: "lemmy.dbzer0.com"
      +apPreferredUsername: "Flyswat"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1719729962 {#4274
        date: 2024-06-30 08:46:02.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694678470 {#4275
        date: 2023-09-14 10:01:10.0 +02:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      > If you fill both fields the output in the terminal is `file|this is some text|`\n
      \n
      Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1729128706 {#4271
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4277 …}
    +nested: Doctrine\ORM\PersistentCollection {#4279 …}
    +votes: Doctrine\ORM\PersistentCollection {#4281 …}
    +reports: Doctrine\ORM\PersistentCollection {#4283 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
    -id: 346800
    -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.dbzer0.com/comment/7219040"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706437319 {#4272
      date: 2024-01-28 11:21:59.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#6488
  +formDest: "entry_comment"
  +subject: App\Entity\EntryComment {#4276
    +user: App\Entity\User {#4289
      +avatar: null
      +cover: null
      +email: "Flyswat@lemmy.dbzer0.com"
      +username: "@Flyswat@lemmy.dbzer0.com"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729120937 {#4273
        date: 2024-10-17 01:22:17.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
      +entries: Doctrine\ORM\PersistentCollection {#4296 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
      +posts: Doctrine\ORM\PersistentCollection {#4304 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
      +follows: Doctrine\ORM\PersistentCollection {#4316 …}
      +followers: Doctrine\ORM\PersistentCollection {#4318 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
      +reports: Doctrine\ORM\PersistentCollection {#4328 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
      +violations: Doctrine\ORM\PersistentCollection {#4332 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
      +awards: Doctrine\ORM\PersistentCollection {#4336 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
      +categories: Doctrine\ORM\PersistentCollection {#4340 …}
      -id: 46103
      -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
      +apId: "Flyswat@lemmy.dbzer0.com"
      +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
      +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
      +apDomain: "lemmy.dbzer0.com"
      +apPreferredUsername: "Flyswat"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1719729962 {#4274
        date: 2024-06-30 08:46:02.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694678470 {#4275
        date: 2023-09-14 10:01:10.0 +02:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      > If you fill both fields the output in the terminal is `file|this is some text|`\n
      \n
      Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1729128706 {#4271
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4277 …}
    +nested: Doctrine\ORM\PersistentCollection {#4279 …}
    +votes: Doctrine\ORM\PersistentCollection {#4281 …}
    +reports: Doctrine\ORM\PersistentCollection {#4283 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
    -id: 346800
    -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.dbzer0.com/comment/7219040"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706437319 {#4272
      date: 2024-01-28 11:21:59.0 +01:00
    }
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
entry_comments_nested App\Twig\Components\EntryCommentsNestedComponent 12.0 MiB 40.83 ms
Input props
[
  "comment" => App\Entity\EntryComment {#4276
    +user: App\Entity\User {#4289
      +avatar: null
      +cover: null
      +email: "Flyswat@lemmy.dbzer0.com"
      +username: "@Flyswat@lemmy.dbzer0.com"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729120937 {#4273
        date: 2024-10-17 01:22:17.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
      +entries: Doctrine\ORM\PersistentCollection {#4296 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
      +posts: Doctrine\ORM\PersistentCollection {#4304 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
      +follows: Doctrine\ORM\PersistentCollection {#4316 …}
      +followers: Doctrine\ORM\PersistentCollection {#4318 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
      +reports: Doctrine\ORM\PersistentCollection {#4328 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
      +violations: Doctrine\ORM\PersistentCollection {#4332 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
      +awards: Doctrine\ORM\PersistentCollection {#4336 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
      +categories: Doctrine\ORM\PersistentCollection {#4340 …}
      -id: 46103
      -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
      +apId: "Flyswat@lemmy.dbzer0.com"
      +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
      +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
      +apDomain: "lemmy.dbzer0.com"
      +apPreferredUsername: "Flyswat"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1719729962 {#4274
        date: 2024-06-30 08:46:02.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694678470 {#4275
        date: 2023-09-14 10:01:10.0 +02:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      > If you fill both fields the output in the terminal is `file|this is some text|`\n
      \n
      Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1729128706 {#4271
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4277 …}
    +nested: Doctrine\ORM\PersistentCollection {#4279 …}
    +votes: Doctrine\ORM\PersistentCollection {#4281 …}
    +reports: Doctrine\ORM\PersistentCollection {#4283 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
    -id: 346800
    -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.dbzer0.com/comment/7219040"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706437319 {#4272
      date: 2024-01-28 11:21:59.0 +01:00
    }
  }
  "level" => 1
  "showNested" => true
  "view" => "tree"
]
Attributes
[
  "showNested" => true
]
Component
App\Twig\Components\EntryCommentsNestedComponent {#6728
  +comment: App\Entity\EntryComment {#4276
    +user: App\Entity\User {#4289
      +avatar: null
      +cover: null
      +email: "Flyswat@lemmy.dbzer0.com"
      +username: "@Flyswat@lemmy.dbzer0.com"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729120937 {#4273
        date: 2024-10-17 01:22:17.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
      +entries: Doctrine\ORM\PersistentCollection {#4296 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
      +posts: Doctrine\ORM\PersistentCollection {#4304 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
      +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
      +follows: Doctrine\ORM\PersistentCollection {#4316 …}
      +followers: Doctrine\ORM\PersistentCollection {#4318 …}
      +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
      +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
      +reports: Doctrine\ORM\PersistentCollection {#4328 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
      +violations: Doctrine\ORM\PersistentCollection {#4332 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
      +awards: Doctrine\ORM\PersistentCollection {#4336 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
      +categories: Doctrine\ORM\PersistentCollection {#4340 …}
      -id: 46103
      -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
      +apId: "Flyswat@lemmy.dbzer0.com"
      +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
      +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
      +apFollowersUrl: null
      +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
      +apDomain: "lemmy.dbzer0.com"
      +apPreferredUsername: "Flyswat"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1719729962 {#4274
        date: 2024-06-30 08:46:02.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694678470 {#4275
        date: 2023-09-14 10:01:10.0 +02:00
      }
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970
        +avatar: null
        +cover: null
        +email: "linuxPIPEpower@discuss.tchncs.de"
        +username: "@linuxPIPEpower@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729128706 {#1536
          date: 2024-10-17 03:31:46.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
        +entries: Doctrine\ORM\PersistentCollection {#1631 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
        +posts: Doctrine\ORM\PersistentCollection {#1659 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
        +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
        +follows: Doctrine\ORM\PersistentCollection {#1660 …}
        +followers: Doctrine\ORM\PersistentCollection {#1627 …}
        +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
        +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
        +reports: Doctrine\ORM\PersistentCollection {#1425 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
        +violations: Doctrine\ORM\PersistentCollection {#1699 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
        +awards: Doctrine\ORM\PersistentCollection {#1430 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
        +categories: Doctrine\ORM\PersistentCollection {#1645 …}
        -id: 86105
        -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
        +apId: "linuxPIPEpower@discuss.tchncs.de"
        +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
        +apFollowersUrl: null
        +apInboxUrl: "https://discuss.tchncs.de/inbox"
        +apDomain: "discuss.tchncs.de"
        +apPreferredUsername: "linuxPIPEpower"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1728132845 {#1515
          date: 2024-10-05 14:54:05.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1705651727 {#1516
          date: 2024-01-19 09:08:47.0 +01:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      > If you fill both fields the output in the terminal is `file|this is some text|`\n
      \n
      Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1729128706 {#4271
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4277 …}
    +nested: Doctrine\ORM\PersistentCollection {#4279 …}
    +votes: Doctrine\ORM\PersistentCollection {#4281 …}
    +reports: Doctrine\ORM\PersistentCollection {#4283 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
    -id: 346800
    -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.dbzer0.com/comment/7219040"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706437319 {#4272
      date: 2024-01-28 11:21:59.0 +01:00
    }
  }
  +nestedComments: [
    346865 => App\Entity\EntryComment {#4360
      +user: Proxies\__CG__\App\Entity\User {#1970 …2}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4276}
      +root: App\Entity\EntryComment {#4276}
      +body: """
        It is the only solution I found. I described it in the post but put it behind a “spoiler” “What doesn’t work” to make the post shorter.\n
        \n
        This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1706442463 {#4361
        date: 2024-01-28 12:47:43.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linuxPIPEpower@discuss.tchncs.de"
        "@Flyswat@lemmy.dbzer0.com"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4357 …}
      +nested: Doctrine\ORM\PersistentCollection {#4353 …}
      +votes: Doctrine\ORM\PersistentCollection {#4351 …}
      +reports: Doctrine\ORM\PersistentCollection {#4366 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
      -id: 346865
      -bodyTs: "'ad':33 'behind':17 'chang':47 'describ':9 'doesn':21 'everi':52 'fail':38 'field':36,44 'found':7 'fragil':59 'input':41 'make':25 'new':35 'order':50 'output':49 'post':13,27 'provid':40 'put':15 'seem':30 'shorter':28 'solut':5 'spoiler':19 'subsequ':53 'unmanag':31 'valu':54 'way':57 'work':23"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/comment/6918125"
      +editedAt: null
      +createdAt: DateTimeImmutable @1706442463 {#4364
        date: 2024-01-28 12:47:43.0 +01:00
      }
    }
  ]
  +level: 1
  +view: "tree"
  -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …}
  -twig: Twig\Environment {#1252 …}
  -security: Symfony\Bundle\SecurityBundle\Security {#1101 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
entry_comment App\Twig\Components\EntryCommentComponent 12.0 MiB 36.16 ms
Input props
[
  "comment" => App\Entity\EntryComment {#4360
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970 …2}
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4276
      +user: App\Entity\User {#4289
        +avatar: null
        +cover: null
        +email: "Flyswat@lemmy.dbzer0.com"
        +username: "@Flyswat@lemmy.dbzer0.com"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729120937 {#4273
          date: 2024-10-17 01:22:17.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
        +entries: Doctrine\ORM\PersistentCollection {#4296 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
        +posts: Doctrine\ORM\PersistentCollection {#4304 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
        +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
        +follows: Doctrine\ORM\PersistentCollection {#4316 …}
        +followers: Doctrine\ORM\PersistentCollection {#4318 …}
        +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
        +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
        +reports: Doctrine\ORM\PersistentCollection {#4328 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
        +violations: Doctrine\ORM\PersistentCollection {#4332 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
        +awards: Doctrine\ORM\PersistentCollection {#4336 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
        +categories: Doctrine\ORM\PersistentCollection {#4340 …}
        -id: 46103
        -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
        +apId: "Flyswat@lemmy.dbzer0.com"
        +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
        +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
        +apFollowersUrl: null
        +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
        +apDomain: "lemmy.dbzer0.com"
        +apPreferredUsername: "Flyswat"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1719729962 {#4274
          date: 2024-06-30 08:46:02.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1694678470 {#4275
          date: 2023-09-14 10:01:10.0 +02:00
        }
      }
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        > If you fill both fields the output in the terminal is `file|this is some text|`\n
        \n
        Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1729128706 {#4271
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linuxPIPEpower@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4277 …}
      +nested: Doctrine\ORM\PersistentCollection {#4279 …}
      +votes: Doctrine\ORM\PersistentCollection {#4281 …}
      +reports: Doctrine\ORM\PersistentCollection {#4283 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
      -id: 346800
      -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.dbzer0.com/comment/7219040"
      +editedAt: null
      +createdAt: DateTimeImmutable @1706437319 {#4272
        date: 2024-01-28 11:21:59.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4276}
    +body: """
      It is the only solution I found. I described it in the post but put it behind a “spoiler” “What doesn’t work” to make the post shorter.\n
      \n
      This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706442463 {#4361
      date: 2024-01-28 12:47:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@Flyswat@lemmy.dbzer0.com"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4357 …}
    +nested: Doctrine\ORM\PersistentCollection {#4353 …}
    +votes: Doctrine\ORM\PersistentCollection {#4351 …}
    +reports: Doctrine\ORM\PersistentCollection {#4366 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
    -id: 346865
    -bodyTs: "'ad':33 'behind':17 'chang':47 'describ':9 'doesn':21 'everi':52 'fail':38 'field':36,44 'found':7 'fragil':59 'input':41 'make':25 'new':35 'order':50 'output':49 'post':13,27 'provid':40 'put':15 'seem':30 'shorter':28 'solut':5 'spoiler':19 'subsequ':53 'unmanag':31 'valu':54 'way':57 'work':23"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/6918125"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706442463 {#4364
      date: 2024-01-28 12:47:43.0 +01:00
    }
  }
  "showNested" => true
  "level" => 2
  "showEntryTitle" => false
  "showMagazineName" => false
]
Attributes
[]
Component
App\Twig\Components\EntryCommentComponent {#6788
  +comment: App\Entity\EntryComment {#4360
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970 …2}
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4276
      +user: App\Entity\User {#4289
        +avatar: null
        +cover: null
        +email: "Flyswat@lemmy.dbzer0.com"
        +username: "@Flyswat@lemmy.dbzer0.com"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729120937 {#4273
          date: 2024-10-17 01:22:17.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
        +entries: Doctrine\ORM\PersistentCollection {#4296 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
        +posts: Doctrine\ORM\PersistentCollection {#4304 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
        +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
        +follows: Doctrine\ORM\PersistentCollection {#4316 …}
        +followers: Doctrine\ORM\PersistentCollection {#4318 …}
        +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
        +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
        +reports: Doctrine\ORM\PersistentCollection {#4328 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
        +violations: Doctrine\ORM\PersistentCollection {#4332 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
        +awards: Doctrine\ORM\PersistentCollection {#4336 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
        +categories: Doctrine\ORM\PersistentCollection {#4340 …}
        -id: 46103
        -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
        +apId: "Flyswat@lemmy.dbzer0.com"
        +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
        +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
        +apFollowersUrl: null
        +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
        +apDomain: "lemmy.dbzer0.com"
        +apPreferredUsername: "Flyswat"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1719729962 {#4274
          date: 2024-06-30 08:46:02.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1694678470 {#4275
          date: 2023-09-14 10:01:10.0 +02:00
        }
      }
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        > If you fill both fields the output in the terminal is `file|this is some text|`\n
        \n
        Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1729128706 {#4271
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linuxPIPEpower@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4277 …}
      +nested: Doctrine\ORM\PersistentCollection {#4279 …}
      +votes: Doctrine\ORM\PersistentCollection {#4281 …}
      +reports: Doctrine\ORM\PersistentCollection {#4283 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
      -id: 346800
      -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.dbzer0.com/comment/7219040"
      +editedAt: null
      +createdAt: DateTimeImmutable @1706437319 {#4272
        date: 2024-01-28 11:21:59.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4276}
    +body: """
      It is the only solution I found. I described it in the post but put it behind a “spoiler” “What doesn’t work” to make the post shorter.\n
      \n
      This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706442463 {#4361
      date: 2024-01-28 12:47:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@Flyswat@lemmy.dbzer0.com"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4357 …}
    +nested: Doctrine\ORM\PersistentCollection {#4353 …}
    +votes: Doctrine\ORM\PersistentCollection {#4351 …}
    +reports: Doctrine\ORM\PersistentCollection {#4366 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
    -id: 346865
    -bodyTs: "'ad':33 'behind':17 'chang':47 'describ':9 'doesn':21 'everi':52 'fail':38 'field':36,44 'found':7 'fragil':59 'input':41 'make':25 'new':35 'order':50 'output':49 'post':13,27 'provid':40 'put':15 'seem':30 'shorter':28 'solut':5 'spoiler':19 'subsequ':53 'unmanag':31 'valu':54 'way':57 'work':23"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/6918125"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706442463 {#4364
      date: 2024-01-28 12:47:43.0 +01:00
    }
  }
  +showMagazineName: false
  +showEntryTitle: false
  +showNested: true
  +level: 2
  +canSeeTrash: false
  +dateAsUrl: false
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 0.22 ms
Input props
[
  "user" => Proxies\__CG__\App\Entity\User {#1970
    +avatar: null
    +cover: null
    +email: "linuxPIPEpower@discuss.tchncs.de"
    +username: "@linuxPIPEpower@discuss.tchncs.de"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729128706 {#1536
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
    +entries: Doctrine\ORM\PersistentCollection {#1631 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
    +posts: Doctrine\ORM\PersistentCollection {#1659 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
    +follows: Doctrine\ORM\PersistentCollection {#1660 …}
    +followers: Doctrine\ORM\PersistentCollection {#1627 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
    +reports: Doctrine\ORM\PersistentCollection {#1425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
    +violations: Doctrine\ORM\PersistentCollection {#1699 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
    +awards: Doctrine\ORM\PersistentCollection {#1430 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
    +categories: Doctrine\ORM\PersistentCollection {#1645 …}
    -id: 86105
    -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
    +apId: "linuxPIPEpower@discuss.tchncs.de"
    +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apFollowersUrl: null
    +apInboxUrl: "https://discuss.tchncs.de/inbox"
    +apDomain: "discuss.tchncs.de"
    +apPreferredUsername: "linuxPIPEpower"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728132845 {#1515
      date: 2024-10-05 14:54:05.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1705651727 {#1516
      date: 2024-01-19 09:08:47.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#6835
  +user: Proxies\__CG__\App\Entity\User {#1970
    +avatar: null
    +cover: null
    +email: "linuxPIPEpower@discuss.tchncs.de"
    +username: "@linuxPIPEpower@discuss.tchncs.de"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729128706 {#1536
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
    +entries: Doctrine\ORM\PersistentCollection {#1631 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
    +posts: Doctrine\ORM\PersistentCollection {#1659 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
    +follows: Doctrine\ORM\PersistentCollection {#1660 …}
    +followers: Doctrine\ORM\PersistentCollection {#1627 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
    +reports: Doctrine\ORM\PersistentCollection {#1425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
    +violations: Doctrine\ORM\PersistentCollection {#1699 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
    +awards: Doctrine\ORM\PersistentCollection {#1430 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
    +categories: Doctrine\ORM\PersistentCollection {#1645 …}
    -id: 86105
    -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
    +apId: "linuxPIPEpower@discuss.tchncs.de"
    +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apFollowersUrl: null
    +apInboxUrl: "https://discuss.tchncs.de/inbox"
    +apDomain: "discuss.tchncs.de"
    +apPreferredUsername: "linuxPIPEpower"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728132845 {#1515
      date: 2024-10-05 14:54:05.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1705651727 {#1516
      date: 2024-01-19 09:08:47.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.20 ms
Input props
[
  "date" => DateTimeImmutable @1706442463 {#4364
    date: 2024-01-28 12:47:43.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#6890
  +date: DateTimeImmutable @1706442463 {#4364
    date: 2024-01-28 12:47:43.0 +01:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.72 ms
Input props
[
  "createdAt" => DateTimeImmutable @1706442463 {#4364
    date: 2024-01-28 12:47:43.0 +01:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#6944
  +createdAt: DateTimeImmutable @1706442463 {#4364
    date: 2024-01-28 12:47:43.0 +01:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.23 ms
Input props
[
  "user" => Proxies\__CG__\App\Entity\User {#1970
    +avatar: null
    +cover: null
    +email: "linuxPIPEpower@discuss.tchncs.de"
    +username: "@linuxPIPEpower@discuss.tchncs.de"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729128706 {#1536
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
    +entries: Doctrine\ORM\PersistentCollection {#1631 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
    +posts: Doctrine\ORM\PersistentCollection {#1659 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
    +follows: Doctrine\ORM\PersistentCollection {#1660 …}
    +followers: Doctrine\ORM\PersistentCollection {#1627 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
    +reports: Doctrine\ORM\PersistentCollection {#1425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
    +violations: Doctrine\ORM\PersistentCollection {#1699 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
    +awards: Doctrine\ORM\PersistentCollection {#1430 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
    +categories: Doctrine\ORM\PersistentCollection {#1645 …}
    -id: 86105
    -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
    +apId: "linuxPIPEpower@discuss.tchncs.de"
    +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apFollowersUrl: null
    +apInboxUrl: "https://discuss.tchncs.de/inbox"
    +apDomain: "discuss.tchncs.de"
    +apPreferredUsername: "linuxPIPEpower"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728132845 {#1515
      date: 2024-10-05 14:54:05.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1705651727 {#1516
      date: 2024-01-19 09:08:47.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#6998
  +width: 40
  +height: 40
  +user: Proxies\__CG__\App\Entity\User {#1970
    +avatar: null
    +cover: null
    +email: "linuxPIPEpower@discuss.tchncs.de"
    +username: "@linuxPIPEpower@discuss.tchncs.de"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729128706 {#1536
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
    +entries: Doctrine\ORM\PersistentCollection {#1631 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
    +posts: Doctrine\ORM\PersistentCollection {#1659 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
    +follows: Doctrine\ORM\PersistentCollection {#1660 …}
    +followers: Doctrine\ORM\PersistentCollection {#1627 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
    +reports: Doctrine\ORM\PersistentCollection {#1425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
    +violations: Doctrine\ORM\PersistentCollection {#1699 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
    +awards: Doctrine\ORM\PersistentCollection {#1430 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
    +categories: Doctrine\ORM\PersistentCollection {#1645 …}
    -id: 86105
    -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
    +apId: "linuxPIPEpower@discuss.tchncs.de"
    +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apFollowersUrl: null
    +apInboxUrl: "https://discuss.tchncs.de/inbox"
    +apDomain: "discuss.tchncs.de"
    +apPreferredUsername: "linuxPIPEpower"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728132845 {#1515
      date: 2024-10-05 14:54:05.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1705651727 {#1516
      date: 2024-01-19 09:08:47.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 3.28 ms
Input props
[
  "subject" => App\Entity\EntryComment {#4360
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970 …2}
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4276
      +user: App\Entity\User {#4289
        +avatar: null
        +cover: null
        +email: "Flyswat@lemmy.dbzer0.com"
        +username: "@Flyswat@lemmy.dbzer0.com"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729120937 {#4273
          date: 2024-10-17 01:22:17.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
        +entries: Doctrine\ORM\PersistentCollection {#4296 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
        +posts: Doctrine\ORM\PersistentCollection {#4304 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
        +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
        +follows: Doctrine\ORM\PersistentCollection {#4316 …}
        +followers: Doctrine\ORM\PersistentCollection {#4318 …}
        +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
        +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
        +reports: Doctrine\ORM\PersistentCollection {#4328 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
        +violations: Doctrine\ORM\PersistentCollection {#4332 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
        +awards: Doctrine\ORM\PersistentCollection {#4336 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
        +categories: Doctrine\ORM\PersistentCollection {#4340 …}
        -id: 46103
        -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
        +apId: "Flyswat@lemmy.dbzer0.com"
        +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
        +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
        +apFollowersUrl: null
        +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
        +apDomain: "lemmy.dbzer0.com"
        +apPreferredUsername: "Flyswat"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1719729962 {#4274
          date: 2024-06-30 08:46:02.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1694678470 {#4275
          date: 2023-09-14 10:01:10.0 +02:00
        }
      }
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        > If you fill both fields the output in the terminal is `file|this is some text|`\n
        \n
        Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1729128706 {#4271
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linuxPIPEpower@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4277 …}
      +nested: Doctrine\ORM\PersistentCollection {#4279 …}
      +votes: Doctrine\ORM\PersistentCollection {#4281 …}
      +reports: Doctrine\ORM\PersistentCollection {#4283 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
      -id: 346800
      -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.dbzer0.com/comment/7219040"
      +editedAt: null
      +createdAt: DateTimeImmutable @1706437319 {#4272
        date: 2024-01-28 11:21:59.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4276}
    +body: """
      It is the only solution I found. I described it in the post but put it behind a “spoiler” “What doesn’t work” to make the post shorter.\n
      \n
      This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706442463 {#4361
      date: 2024-01-28 12:47:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@Flyswat@lemmy.dbzer0.com"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4357 …}
    +nested: Doctrine\ORM\PersistentCollection {#4353 …}
    +votes: Doctrine\ORM\PersistentCollection {#4351 …}
    +reports: Doctrine\ORM\PersistentCollection {#4366 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
    -id: 346865
    -bodyTs: "'ad':33 'behind':17 'chang':47 'describ':9 'doesn':21 'everi':52 'fail':38 'field':36,44 'found':7 'fragil':59 'input':41 'make':25 'new':35 'order':50 'output':49 'post':13,27 'provid':40 'put':15 'seem':30 'shorter':28 'solut':5 'spoiler':19 'subsequ':53 'unmanag':31 'valu':54 'way':57 'work':23"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/6918125"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706442463 {#4364
      date: 2024-01-28 12:47:43.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#7205
  +subject: App\Entity\EntryComment {#4360
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970 …2}
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4276
      +user: App\Entity\User {#4289
        +avatar: null
        +cover: null
        +email: "Flyswat@lemmy.dbzer0.com"
        +username: "@Flyswat@lemmy.dbzer0.com"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729120937 {#4273
          date: 2024-10-17 01:22:17.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
        +entries: Doctrine\ORM\PersistentCollection {#4296 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
        +posts: Doctrine\ORM\PersistentCollection {#4304 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
        +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
        +follows: Doctrine\ORM\PersistentCollection {#4316 …}
        +followers: Doctrine\ORM\PersistentCollection {#4318 …}
        +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
        +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
        +reports: Doctrine\ORM\PersistentCollection {#4328 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
        +violations: Doctrine\ORM\PersistentCollection {#4332 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
        +awards: Doctrine\ORM\PersistentCollection {#4336 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
        +categories: Doctrine\ORM\PersistentCollection {#4340 …}
        -id: 46103
        -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
        +apId: "Flyswat@lemmy.dbzer0.com"
        +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
        +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
        +apFollowersUrl: null
        +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
        +apDomain: "lemmy.dbzer0.com"
        +apPreferredUsername: "Flyswat"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1719729962 {#4274
          date: 2024-06-30 08:46:02.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1694678470 {#4275
          date: 2023-09-14 10:01:10.0 +02:00
        }
      }
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        > If you fill both fields the output in the terminal is `file|this is some text|`\n
        \n
        Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1729128706 {#4271
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linuxPIPEpower@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4277 …}
      +nested: Doctrine\ORM\PersistentCollection {#4279 …}
      +votes: Doctrine\ORM\PersistentCollection {#4281 …}
      +reports: Doctrine\ORM\PersistentCollection {#4283 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
      -id: 346800
      -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.dbzer0.com/comment/7219040"
      +editedAt: null
      +createdAt: DateTimeImmutable @1706437319 {#4272
        date: 2024-01-28 11:21:59.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4276}
    +body: """
      It is the only solution I found. I described it in the post but put it behind a “spoiler” “What doesn’t work” to make the post shorter.\n
      \n
      This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706442463 {#4361
      date: 2024-01-28 12:47:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@Flyswat@lemmy.dbzer0.com"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4357 …}
    +nested: Doctrine\ORM\PersistentCollection {#4353 …}
    +votes: Doctrine\ORM\PersistentCollection {#4351 …}
    +reports: Doctrine\ORM\PersistentCollection {#4366 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
    -id: 346865
    -bodyTs: "'ad':33 'behind':17 'chang':47 'describ':9 'doesn':21 'everi':52 'fail':38 'field':36,44 'found':7 'fragil':59 'input':41 'make':25 'new':35 'order':50 'output':49 'post':13,27 'provid':40 'put':15 'seem':30 'shorter':28 'solut':5 'spoiler':19 'subsequ':53 'unmanag':31 'valu':54 'way':57 'work':23"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/6918125"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706442463 {#4364
      date: 2024-01-28 12:47:43.0 +01:00
    }
  }
  +formDest: "entry_comment"
  +showDownvote: true
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 7.72 ms
Input props
[
  "subject" => App\Entity\EntryComment {#4360
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970 …2}
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4276
      +user: App\Entity\User {#4289
        +avatar: null
        +cover: null
        +email: "Flyswat@lemmy.dbzer0.com"
        +username: "@Flyswat@lemmy.dbzer0.com"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729120937 {#4273
          date: 2024-10-17 01:22:17.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
        +entries: Doctrine\ORM\PersistentCollection {#4296 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
        +posts: Doctrine\ORM\PersistentCollection {#4304 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
        +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
        +follows: Doctrine\ORM\PersistentCollection {#4316 …}
        +followers: Doctrine\ORM\PersistentCollection {#4318 …}
        +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
        +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
        +reports: Doctrine\ORM\PersistentCollection {#4328 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
        +violations: Doctrine\ORM\PersistentCollection {#4332 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
        +awards: Doctrine\ORM\PersistentCollection {#4336 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
        +categories: Doctrine\ORM\PersistentCollection {#4340 …}
        -id: 46103
        -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
        +apId: "Flyswat@lemmy.dbzer0.com"
        +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
        +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
        +apFollowersUrl: null
        +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
        +apDomain: "lemmy.dbzer0.com"
        +apPreferredUsername: "Flyswat"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1719729962 {#4274
          date: 2024-06-30 08:46:02.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1694678470 {#4275
          date: 2023-09-14 10:01:10.0 +02:00
        }
      }
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        > If you fill both fields the output in the terminal is `file|this is some text|`\n
        \n
        Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1729128706 {#4271
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linuxPIPEpower@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4277 …}
      +nested: Doctrine\ORM\PersistentCollection {#4279 …}
      +votes: Doctrine\ORM\PersistentCollection {#4281 …}
      +reports: Doctrine\ORM\PersistentCollection {#4283 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
      -id: 346800
      -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.dbzer0.com/comment/7219040"
      +editedAt: null
      +createdAt: DateTimeImmutable @1706437319 {#4272
        date: 2024-01-28 11:21:59.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4276}
    +body: """
      It is the only solution I found. I described it in the post but put it behind a “spoiler” “What doesn’t work” to make the post shorter.\n
      \n
      This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706442463 {#4361
      date: 2024-01-28 12:47:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@Flyswat@lemmy.dbzer0.com"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4357 …}
    +nested: Doctrine\ORM\PersistentCollection {#4353 …}
    +votes: Doctrine\ORM\PersistentCollection {#4351 …}
    +reports: Doctrine\ORM\PersistentCollection {#4366 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
    -id: 346865
    -bodyTs: "'ad':33 'behind':17 'chang':47 'describ':9 'doesn':21 'everi':52 'fail':38 'field':36,44 'found':7 'fragil':59 'input':41 'make':25 'new':35 'order':50 'output':49 'post':13,27 'provid':40 'put':15 'seem':30 'shorter':28 'solut':5 'spoiler':19 'subsequ':53 'unmanag':31 'valu':54 'way':57 'work':23"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/6918125"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706442463 {#4364
      date: 2024-01-28 12:47:43.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#7262
  +formDest: "entry_comment"
  +subject: App\Entity\EntryComment {#4360
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970 …2}
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4276
      +user: App\Entity\User {#4289
        +avatar: null
        +cover: null
        +email: "Flyswat@lemmy.dbzer0.com"
        +username: "@Flyswat@lemmy.dbzer0.com"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729120937 {#4273
          date: 2024-10-17 01:22:17.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
        +entries: Doctrine\ORM\PersistentCollection {#4296 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
        +posts: Doctrine\ORM\PersistentCollection {#4304 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
        +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
        +follows: Doctrine\ORM\PersistentCollection {#4316 …}
        +followers: Doctrine\ORM\PersistentCollection {#4318 …}
        +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
        +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
        +reports: Doctrine\ORM\PersistentCollection {#4328 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
        +violations: Doctrine\ORM\PersistentCollection {#4332 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
        +awards: Doctrine\ORM\PersistentCollection {#4336 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
        +categories: Doctrine\ORM\PersistentCollection {#4340 …}
        -id: 46103
        -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
        +apId: "Flyswat@lemmy.dbzer0.com"
        +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
        +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
        +apFollowersUrl: null
        +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
        +apDomain: "lemmy.dbzer0.com"
        +apPreferredUsername: "Flyswat"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1719729962 {#4274
          date: 2024-06-30 08:46:02.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1694678470 {#4275
          date: 2023-09-14 10:01:10.0 +02:00
        }
      }
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        > If you fill both fields the output in the terminal is `file|this is some text|`\n
        \n
        Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1729128706 {#4271
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linuxPIPEpower@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4277 …}
      +nested: Doctrine\ORM\PersistentCollection {#4279 …}
      +votes: Doctrine\ORM\PersistentCollection {#4281 …}
      +reports: Doctrine\ORM\PersistentCollection {#4283 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
      -id: 346800
      -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.dbzer0.com/comment/7219040"
      +editedAt: null
      +createdAt: DateTimeImmutable @1706437319 {#4272
        date: 2024-01-28 11:21:59.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4276}
    +body: """
      It is the only solution I found. I described it in the post but put it behind a “spoiler” “What doesn’t work” to make the post shorter.\n
      \n
      This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706442463 {#4361
      date: 2024-01-28 12:47:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@Flyswat@lemmy.dbzer0.com"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4357 …}
    +nested: Doctrine\ORM\PersistentCollection {#4353 …}
    +votes: Doctrine\ORM\PersistentCollection {#4351 …}
    +reports: Doctrine\ORM\PersistentCollection {#4366 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
    -id: 346865
    -bodyTs: "'ad':33 'behind':17 'chang':47 'describ':9 'doesn':21 'everi':52 'fail':38 'field':36,44 'found':7 'fragil':59 'input':41 'make':25 'new':35 'order':50 'output':49 'post':13,27 'provid':40 'put':15 'seem':30 'shorter':28 'solut':5 'spoiler':19 'subsequ':53 'unmanag':31 'valu':54 'way':57 'work':23"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/6918125"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706442463 {#4364
      date: 2024-01-28 12:47:43.0 +01:00
    }
  }
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
entry_comments_nested App\Twig\Components\EntryCommentsNestedComponent 12.0 MiB 0.77 ms
Input props
[
  "comment" => App\Entity\EntryComment {#4360
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970 …2}
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4276
      +user: App\Entity\User {#4289
        +avatar: null
        +cover: null
        +email: "Flyswat@lemmy.dbzer0.com"
        +username: "@Flyswat@lemmy.dbzer0.com"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729120937 {#4273
          date: 2024-10-17 01:22:17.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
        +entries: Doctrine\ORM\PersistentCollection {#4296 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
        +posts: Doctrine\ORM\PersistentCollection {#4304 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
        +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
        +follows: Doctrine\ORM\PersistentCollection {#4316 …}
        +followers: Doctrine\ORM\PersistentCollection {#4318 …}
        +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
        +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
        +reports: Doctrine\ORM\PersistentCollection {#4328 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
        +violations: Doctrine\ORM\PersistentCollection {#4332 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
        +awards: Doctrine\ORM\PersistentCollection {#4336 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
        +categories: Doctrine\ORM\PersistentCollection {#4340 …}
        -id: 46103
        -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
        +apId: "Flyswat@lemmy.dbzer0.com"
        +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
        +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
        +apFollowersUrl: null
        +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
        +apDomain: "lemmy.dbzer0.com"
        +apPreferredUsername: "Flyswat"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1719729962 {#4274
          date: 2024-06-30 08:46:02.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1694678470 {#4275
          date: 2023-09-14 10:01:10.0 +02:00
        }
      }
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        > If you fill both fields the output in the terminal is `file|this is some text|`\n
        \n
        Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1729128706 {#4271
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linuxPIPEpower@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4277 …}
      +nested: Doctrine\ORM\PersistentCollection {#4279 …}
      +votes: Doctrine\ORM\PersistentCollection {#4281 …}
      +reports: Doctrine\ORM\PersistentCollection {#4283 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
      -id: 346800
      -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.dbzer0.com/comment/7219040"
      +editedAt: null
      +createdAt: DateTimeImmutable @1706437319 {#4272
        date: 2024-01-28 11:21:59.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4276}
    +body: """
      It is the only solution I found. I described it in the post but put it behind a “spoiler” “What doesn’t work” to make the post shorter.\n
      \n
      This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706442463 {#4361
      date: 2024-01-28 12:47:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@Flyswat@lemmy.dbzer0.com"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4357 …}
    +nested: Doctrine\ORM\PersistentCollection {#4353 …}
    +votes: Doctrine\ORM\PersistentCollection {#4351 …}
    +reports: Doctrine\ORM\PersistentCollection {#4366 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
    -id: 346865
    -bodyTs: "'ad':33 'behind':17 'chang':47 'describ':9 'doesn':21 'everi':52 'fail':38 'field':36,44 'found':7 'fragil':59 'input':41 'make':25 'new':35 'order':50 'output':49 'post':13,27 'provid':40 'put':15 'seem':30 'shorter':28 'solut':5 'spoiler':19 'subsequ':53 'unmanag':31 'valu':54 'way':57 'work':23"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/6918125"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706442463 {#4364
      date: 2024-01-28 12:47:43.0 +01:00
    }
  }
  "level" => 2
  "showNested" => true
  "view" => "tree"
]
Attributes
[
  "showNested" => true
]
Component
App\Twig\Components\EntryCommentsNestedComponent {#3187
  +comment: App\Entity\EntryComment {#4360
    +user: Proxies\__CG__\App\Entity\User {#1970
      +avatar: null
      +cover: null
      +email: "linuxPIPEpower@discuss.tchncs.de"
      +username: "@linuxPIPEpower@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1729128706 {#1536
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +markedForDeletionAt: null
      +fields: null
      +oauthGithubId: null
      +oauthGoogleId: null
      +oauthFacebookId: null
      +oauthKeycloakId: null
      +hideAdult: true
      +showSubscribedUsers: true
      +showSubscribedMagazines: true
      +showSubscribedDomains: true
      +preferredLanguages: []
      +featuredMagazines: null
      +showProfileSubscriptions: false
      +showProfileFollowings: true
      +markNewComments: false
      +notifyOnNewEntry: false
      +notifyOnNewEntryReply: true
      +notifyOnNewEntryCommentReply: true
      +notifyOnNewPost: false
      +notifyOnNewPostReply: true
      +notifyOnNewPostCommentReply: true
      +addMentionsEntries: false
      +addMentionsPosts: true
      +isBanned: false
      +isVerified: false
      +isDeleted: false
      +isBot: false
      +spamProtection: true
      +customCss: null
      +ignoreMagazinesCustomCss: false
      +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
      +entries: Doctrine\ORM\PersistentCollection {#1631 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
      +posts: Doctrine\ORM\PersistentCollection {#1659 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
      +follows: Doctrine\ORM\PersistentCollection {#1660 …}
      +followers: Doctrine\ORM\PersistentCollection {#1627 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
      +reports: Doctrine\ORM\PersistentCollection {#1425 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
      +violations: Doctrine\ORM\PersistentCollection {#1699 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
      +awards: Doctrine\ORM\PersistentCollection {#1430 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
      +categories: Doctrine\ORM\PersistentCollection {#1645 …}
      -id: 86105
      -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
      +apId: "linuxPIPEpower@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
      +apFollowersUrl: null
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "linuxPIPEpower"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1728132845 {#1515
        date: 2024-10-05 14:54:05.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1705651727 {#1516
        date: 2024-01-19 09:08:47.0 +01:00
      }
      +__isInitialized__: true
       …2
    }
    +entry: App\Entity\Entry {#2412
      +user: Proxies\__CG__\App\Entity\User {#1970 …2}
      +magazine: App\Entity\Magazine {#266
        +icon: Proxies\__CG__\App\Entity\Image {#247 …}
        +name: "linux@lemmy.ml"
        +title: "linux"
        +description: """
          From Wikipedia, the free encyclopedia\n
          \n
          Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
          \n
          Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
          \n
          ### Rules\n
          \n
          - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
          - No misinformation\n
          - No NSFW content\n
          - No hate speech, bigotry, etc\n
          \n
          ### Related Communities\n
          \n
          - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
          - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
          - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
          - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
          \n
          Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
          """
        +rules: null
        +subscriptionsCount: 1
        +entryCount: 1385
        +entryCommentCount: 28286
        +postCount: 6
        +postCommentCount: 213
        +isAdult: false
        +customCss: null
        +lastActive: DateTime @1729134767 {#276
          date: 2024-10-17 05:12:47.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#238 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
        +entries: Doctrine\ORM\PersistentCollection {#181 …}
        +posts: Doctrine\ORM\PersistentCollection {#139 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
        +bans: Doctrine\ORM\PersistentCollection {#118 …}
        +reports: Doctrine\ORM\PersistentCollection {#104 …}
        +badges: Doctrine\ORM\PersistentCollection {#82 …}
        +logs: Doctrine\ORM\PersistentCollection {#72 …}
        +awards: Doctrine\ORM\PersistentCollection {#61 …}
        +categories: Doctrine\ORM\PersistentCollection {#1820 …}
        -id: 73
        +apId: "linux@lemmy.ml"
        +apProfileId: "https://lemmy.ml/c/linux"
        +apPublicUrl: "https://lemmy.ml/c/linux"
        +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
        +apInboxUrl: "https://lemmy.ml/inbox"
        +apDomain: "lemmy.ml"
        +apPreferredUsername: "linux"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: null
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1729135037 {#270
          date: 2024-10-17 03:17:17.284546 UTC (+00:00)
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1698929468 {#272
          date: 2023-11-02 13:51:08.0 +01:00
        }
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
      +slug: "Use-YAD-Zenity-dialogues-to-populated-variables-in-a-bash-script"
      +title: "Use YAD/Zenity dialogues to populated variables in a bash script?"
      +url: null
      +body: """
        I am learning some bash scripting.\n
        \n
        I am interested to learn about getting input for my scripts via a GUI interface. It seems that `yad` (forked from `zenity`) is the most robust tool for this. (But if there is a better choice I would like to hear about it too.)\n
        \n
        Is it possible to obtain *2 or more* named variables using `yad`? *Not* just getting the values based on their positions (`$1`, `$2`, etc), with `awk`. See “What doesn’t work” spoiler for those.\n
        \n
        What doesn't workI find how to obtain *one* named variable, for [example](https://askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity): `sh inputStr=$(zenity --entry --title=“My Title” --text=“My Text:”) `I also find solutions relying on opening single-variable dialogues sequentially but that’s a terrible interface. Everything else relies on chopping up the output with `awk` or based on the positions, `$1`, `$2`, `$3` etc. In [this script](https://askubuntu.com/a/1251429) `$jpgfile` is obtained: `sh jpgfile=$(echo $OUTPUT | awk ‘BEGIN {FS=“,” } { print $1 }’) `This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.\n
        \n
        For a simple example, I want to ask the user for a file name and some content. Creating the dialogue is like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">yad --title </span><span style="color:#183691;">"Create a file"</span><span style="color:#323232;"> --form --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"File name"</span><span style="color:#323232;"> --field</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"Content"\n
        </span>\n
        ```\n
        \n
        If you fill both fields the output in the terminal is `file|this is some text|`. How do I get them into variables like `$filename` and `$filecontent`? So then I can finish the script like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">touch </span><span style="color:#183691;">"$</span><span style="color:#323232;">filename</span><span style="color:#183691;">"\n
        </span><span style="color:#62a35c;">echo </span><span style="color:#183691;">"$</span><span style="color:#323232;">filecontent</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#323232;">$filename\n
        </span>\n
        ```\n
        \n
        Is this possible??? I do not find it anywhere. I looked though all kinds of websites like [YAD Guide](https://yad-guide.ingk.se/), [yad man page](https://www.mankier.com/1/yad), [smokey01](https://smokey01.com/yad/). Maybe I missed something. On [yaddemo](https://github.com/cjungmann/yaddemo/) I read about bash arrays and it seemed to come close but I couldn’t quite piece it together.
        """
      +type: "article"
      +lang: "en"
      +isOc: false
      +hasEmbed: false
      +commentCount: 4
      +favouriteCount: 3
      +score: 0
      +isAdult: false
      +sticky: false
      +lastActive: DateTime @1729132691 {#2410
        date: 2024-10-17 04:38:11.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1884 …}
      +votes: Doctrine\ORM\PersistentCollection {#1973 …}
      +reports: Doctrine\ORM\PersistentCollection {#1959 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
      +badges: Doctrine\ORM\PersistentCollection {#2440 …}
      +children: []
      -id: 33597
      -titleTs: "'bash':9 'dialogu':3 'popul':5 'script':10 'use':1 'variabl':6 'yad/zenity':2"
      -bodyTs: "'/),':293 '/1/yad),':299 '/a/1251429)':153 '/cjungmann/yaddemo/)':312 '/questions/489497/store-the-return-string-to-a-variable-from-zenity):':100 '/yad/).':303 '1':72,144,165 '2':56,73,145 '3':146 'ad':170 'also':112 'anywher':280 'array':317 'ask':204 'askubuntu.com':99,152 'askubuntu.com/a/1251429)':151 'askubuntu.com/questions/489497/store-the-return-string-to-a-variable-from-zenity):':98 'awk':76,138,161 'base':68,140 'bash':5,316 'begin':162 'better':41 'chang':184 'choic':42 'chop':133 'close':323 'come':322 'content':213,230 'couldn':326 'creat':214,222 'dialogu':121,216 'doesn':79,86 'echo':159,269 'els':130 'entri':104 'etc':74,147 'everi':189 'everyth':129 'exampl':97,200 'fail':175 'field':173,181,226,229,235 'file':209,224,227,242 'filecont':257,270 'filenam':255,268,271 'fill':233 'find':89,113,278 'finish':262 'fork':26 'form':225 'fragil':196 'fs':163 'get':13,65,250 'github.com':311 'github.com/cjungmann/yaddemo/)':310 'gui':20 'guid':290 'hear':47 'input':14,178 'inputstr':102 'interest':9 'interfac':21,128 'jpgfile':154,158 'kind':285 'learn':3,11 'like':45,218,254,265,288 'look':282 'man':295 'mayb':304 'miss':306 'name':59,94,210,228 'new':172 'obtain':55,92,156 'one':93 'open':117 'order':187 'output':136,160,186,237 'page':296 'piec':329 'posit':71,143 'possibl':53,274 'print':164 'provid':177 'quit':328 'read':314 'reli':115,131 'robust':32 'script':6,17,150,264 'see':77 'seem':23,167,320 'sequenti':122 'sh':101,157 'simpl':199 'singl':119 'single-vari':118 'smokey01':300 'smokey01.com':302 'smokey01.com/yad/).':301 'solut':114 'someth':307 'spoiler':82 'subsequ':190 'termin':240 'terribl':127 'text':108,110,246 'though':283 'titl':105,107,221 'togeth':331 'tool':33 'touch':267 'unmanag':168 'use':61 'user':206 'valu':67,191 'variabl':60,95,120,253 'via':18 'want':202 'way':194 'websit':287 'work':81 'worki':88 'would':44 'www.mankier.com':298 'www.mankier.com/1/yad),':297 'yad':25,62,220,289,294 'yad-guide.ingk.se':292 'yad-guide.ingk.se/),':291 'yaddemo':309 'zeniti':28,103"
      +cross: false
      +upVotes: 0
      +downVotes: 0
      +ranking: 1706467025
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/post/9987356"
      +editedAt: DateTimeImmutable @1729128865 {#1850
        date: 2024-10-17 03:34:25.0 +02:00
      }
      +createdAt: DateTimeImmutable @1706436525 {#2420
        date: 2024-01-28 11:08:45.0 +01:00
      }
    }
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4276
      +user: App\Entity\User {#4289
        +avatar: null
        +cover: null
        +email: "Flyswat@lemmy.dbzer0.com"
        +username: "@Flyswat@lemmy.dbzer0.com"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1729120937 {#4273
          date: 2024-10-17 01:22:17.0 +02:00
        }
        +markedForDeletionAt: null
        +fields: null
        +oauthGithubId: null
        +oauthGoogleId: null
        +oauthFacebookId: null
        +oauthKeycloakId: null
        +hideAdult: true
        +showSubscribedUsers: true
        +showSubscribedMagazines: true
        +showSubscribedDomains: true
        +preferredLanguages: []
        +featuredMagazines: null
        +showProfileSubscriptions: false
        +showProfileFollowings: true
        +markNewComments: false
        +notifyOnNewEntry: false
        +notifyOnNewEntryReply: true
        +notifyOnNewEntryCommentReply: true
        +notifyOnNewPost: false
        +notifyOnNewPostReply: true
        +notifyOnNewPostCommentReply: true
        +addMentionsEntries: false
        +addMentionsPosts: true
        +isBanned: false
        +isVerified: false
        +isDeleted: false
        +isBot: false
        +spamProtection: true
        +customCss: null
        +ignoreMagazinesCustomCss: false
        +moderatorTokens: Doctrine\ORM\PersistentCollection {#4290 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4292 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#4294 …}
        +entries: Doctrine\ORM\PersistentCollection {#4296 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#4298 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#4300 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4302 …}
        +posts: Doctrine\ORM\PersistentCollection {#4304 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#4306 …}
        +postComments: Doctrine\ORM\PersistentCollection {#4308 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#4310 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#4312 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#4314 …}
        +follows: Doctrine\ORM\PersistentCollection {#4316 …}
        +followers: Doctrine\ORM\PersistentCollection {#4318 …}
        +blocks: Doctrine\ORM\PersistentCollection {#4320 …}
        +blockers: Doctrine\ORM\PersistentCollection {#4322 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#4324 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#4326 …}
        +reports: Doctrine\ORM\PersistentCollection {#4328 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4330 …}
        +violations: Doctrine\ORM\PersistentCollection {#4332 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4334 …}
        +awards: Doctrine\ORM\PersistentCollection {#4336 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#4338 …}
        +categories: Doctrine\ORM\PersistentCollection {#4340 …}
        -id: 46103
        -password: "$2y$13$eEDaMYATOH9OYSFb25eAgeF98Ba6r291U2WWWYerDnpU5jkt4GbFi"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4342 …}
        +apId: "Flyswat@lemmy.dbzer0.com"
        +apProfileId: "https://lemmy.dbzer0.com/u/Flyswat"
        +apPublicUrl: "https://lemmy.dbzer0.com/u/Flyswat"
        +apFollowersUrl: null
        +apInboxUrl: "https://lemmy.dbzer0.com/inbox"
        +apDomain: "lemmy.dbzer0.com"
        +apPreferredUsername: "Flyswat"
        +apDiscoverable: true
        +apManuallyApprovesFollowers: false
        +privateKey: null
        +publicKey: null
        +apFetchedAt: DateTime @1719729962 {#4274
          date: 2024-06-30 08:46:02.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1694678470 {#4275
          date: 2023-09-14 10:01:10.0 +02:00
        }
      }
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        > If you fill both fields the output in the terminal is `file|this is some text|`\n
        \n
        Wouldn’t it be easy to get them using awk by defining `|` as a field separator?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1729128706 {#4271
        date: 2024-10-17 03:31:46.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@linuxPIPEpower@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4277 …}
      +nested: Doctrine\ORM\PersistentCollection {#4279 …}
      +votes: Doctrine\ORM\PersistentCollection {#4281 …}
      +reports: Doctrine\ORM\PersistentCollection {#4283 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4285 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4287 …}
      -id: 346800
      -bodyTs: "'awk':26 'defin':28 'easi':21 'field':5,31 'file':12 'fill':3 'get':23 'output':7 'separ':32 'termin':10 'text':16 'use':25 'wouldn':17"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.dbzer0.com/comment/7219040"
      +editedAt: null
      +createdAt: DateTimeImmutable @1706437319 {#4272
        date: 2024-01-28 11:21:59.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4276}
    +body: """
      It is the only solution I found. I described it in the post but put it behind a “spoiler” “What doesn’t work” to make the post shorter.\n
      \n
      This seems unmanageable because adding a new field or failing to provide input for a field will both change the output order of every subsequent value. It’s way too fragile.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1706442463 {#4361
      date: 2024-01-28 12:47:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@linuxPIPEpower@discuss.tchncs.de"
      "@Flyswat@lemmy.dbzer0.com"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4357 …}
    +nested: Doctrine\ORM\PersistentCollection {#4353 …}
    +votes: Doctrine\ORM\PersistentCollection {#4351 …}
    +reports: Doctrine\ORM\PersistentCollection {#4366 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
    -id: 346865
    -bodyTs: "'ad':33 'behind':17 'chang':47 'describ':9 'doesn':21 'everi':52 'fail':38 'field':36,44 'found':7 'fragil':59 'input':41 'make':25 'new':35 'order':50 'output':49 'post':13,27 'provid':40 'put':15 'seem':30 'shorter':28 'solut':5 'spoiler':19 'subsequ':53 'unmanag':31 'valu':54 'way':57 'work':23"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/6918125"
    +editedAt: null
    +createdAt: DateTimeImmutable @1706442463 {#4364
      date: 2024-01-28 12:47:43.0 +01:00
    }
  }
  +nestedComments: []
  +level: 2
  +view: "tree"
  -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …}
  -twig: Twig\Environment {#1252 …}
  -security: Symfony\Bundle\SecurityBundle\Security {#1101 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
settings_row_enum App\Twig\Components\SettingsRowEnumComponent 12.0 MiB 0.80 ms
Input props
[
  "label" => "Sidebar position"
  "settingsKey" => "KBIN_GENERAL_SIDEBAR_POSITION"
  "values" => [
    [
      "name" => "Left"
      "value" => "LEFT"
    ]
    [
      "name" => "Right"
      "value" => "RIGHT"
    ]
  ]
  "defaultValue" => "RIGHT"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowEnumComponent {#4702
  +label: "Sidebar position"
  +help: ""
  +settingsKey: "KBIN_GENERAL_SIDEBAR_POSITION"
  +values: [
    [
      "name" => "Left"
      "value" => "LEFT"
    ]
    [
      "name" => "Right"
      "value" => "RIGHT"
    ]
  ]
  +defaultValue: "RIGHT"
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.33 ms
Input props
[
  "label" => "Dynamic lists"
  "settingsKey" => "KBIN_GENERAL_DYNAMIC_LISTS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#4778
  +label: "Dynamic lists"
  +help: ""
  +settingsKey: "KBIN_GENERAL_DYNAMIC_LISTS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.23 ms
Input props
[
  "label" => "Rounded edges"
  "settingsKey" => "KBIN_GENERAL_ROUNDED_EDGES"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#5502
  +label: "Rounded edges"
  +help: ""
  +settingsKey: "KBIN_GENERAL_ROUNDED_EDGES"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.23 ms
Input props
[
  "label" => "Infinite scrolling"
  "help" => "Automatically load more content when you reach the bottom of the page."
  "settingsKey" => "KBIN_GENERAL_INFINITE_SCROLL"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#5610
  +label: "Infinite scrolling"
  +help: "Automatically load more content when you reach the bottom of the page."
  +settingsKey: "KBIN_GENERAL_INFINITE_SCROLL"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.22 ms
Input props
[
  "label" => "Sticky navbar"
  "help" => "The navbar will stick to the top of the page when you scroll down."
  "settingsKey" => "KBIN_GENERAL_FIXED_NAVBAR"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#5556
  +label: "Sticky navbar"
  +help: "The navbar will stick to the top of the page when you scroll down."
  +settingsKey: "KBIN_GENERAL_FIXED_NAVBAR"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.22 ms
Input props
[
  "label" => "Show top bar"
  "settingsKey" => "KBIN_GENERAL_TOPBAR"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#6314
  +label: "Show top bar"
  +help: ""
  +settingsKey: "KBIN_GENERAL_TOPBAR"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.32 ms
Input props
[
  "label" => "Turbo mode (experimental)"
  "settingsKey" => "KBIN_GENERAL_TURBO"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#6368
  +label: "Turbo mode (experimental)"
  +help: ""
  +settingsKey: "KBIN_GENERAL_TURBO"
  +defaultValue: false
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 12.0 MiB 0.93 ms
Input props
[
  "label" => "Mark new comments"
  "settingsKey" => "KBIN_MARK_NEW_COMMENTS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#6429
  +label: "Mark new comments"
  +help: ""
  +settingsKey: "KBIN_MARK_NEW_COMMENTS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.23 ms
Input props
[
  "label" => "Show "Support Us" block"
  "settingsKey" => "KBIN_GENERAL_SUPPORT_US_BLOCK"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7142
  +label: "Show "Support Us" block"
  +help: ""
  +settingsKey: "KBIN_GENERAL_SUPPORT_US_BLOCK"
  +defaultValue: true
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 12.0 MiB 0.28 ms
Input props
[
  "label" => "Show subscribed users"
  "settingsKey" => "KBIN_SUB_CHANNEL_USERS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#7419
  +label: "Show subscribed users"
  +help: ""
  +settingsKey: "KBIN_SUB_CHANNEL_USERS"
  +defaultValue: false
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 12.0 MiB 0.26 ms
Input props
[
  "label" => "Show subscribed magazines"
  "settingsKey" => "KBIN_SUB_CHANNEL_MAGAZINES"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#7475
  +label: "Show subscribed magazines"
  +help: ""
  +settingsKey: "KBIN_SUB_CHANNEL_MAGAZINES"
  +defaultValue: false
  +reloadRequired: true
}
user_settings_row_switch App\Twig\Components\UserSettingsRowSwitchComponent 12.0 MiB 0.25 ms
Input props
[
  "label" => "Show subscribed domains"
  "settingsKey" => "KBIN_SUB_CHANNEL_DOMAINS"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#7531
  +label: "Show subscribed domains"
  +help: ""
  +settingsKey: "KBIN_SUB_CHANNEL_DOMAINS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.24 ms
Input props
[
  "label" => "Auto media preview"
  "help" => "Automatically expand media previews."
  "settingsKey" => "KBIN_ENTRIES_SHOW_PREVIEW"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7587
  +label: "Auto media preview"
  +help: "Automatically expand media previews."
  +settingsKey: "KBIN_ENTRIES_SHOW_PREVIEW"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.22 ms
Input props
[
  "label" => "Compact view"
  "settingsKey" => "KBIN_ENTRIES_COMPACT"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7643
  +label: "Compact view"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_COMPACT"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.19 ms
Input props
[
  "label" => "Show users’ avatars"
  "settingsKey" => "KBIN_ENTRIES_SHOW_USERS_AVATARS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7699
  +label: "Show users’ avatars"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_SHOW_USERS_AVATARS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.19 ms
Input props
[
  "label" => "Show magazines’ icons"
  "settingsKey" => "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7755
  +label: "Show magazines’ icons"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.21 ms
Input props
[
  "label" => "Show thumbnails"
  "settingsKey" => "KBIN_ENTRIES_SHOW_THUMBNAILS"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7811
  +label: "Show thumbnails"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_SHOW_THUMBNAILS"
  +defaultValue: true
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.21 ms
Input props
[
  "label" => "Auto media preview"
  "help" => "Automatically expand media previews."
  "settingsKey" => "KBIN_POSTS_SHOW_PREVIEW"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7867
  +label: "Auto media preview"
  +help: "Automatically expand media previews."
  +settingsKey: "KBIN_POSTS_SHOW_PREVIEW"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.20 ms
Input props
[
  "label" => "Show users’ avatars"
  "settingsKey" => "KBIN_POSTS_SHOW_USERS_AVATARS"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#7923
  +label: "Show users’ avatars"
  +help: ""
  +settingsKey: "KBIN_POSTS_SHOW_USERS_AVATARS"
  +defaultValue: true
  +reloadRequired: true
}
settings_row_enum App\Twig\Components\SettingsRowEnumComponent 12.0 MiB 0.26 ms
Input props
[
  "label" => "Comment reply position"
  "help" => "Display the comment reply form either at the top or bottom of the page. When 'infinite scroll' is enabled the position will always appear at the top."
  "settingsKey" => "KBIN_COMMENTS_REPLY_POSITION"
  "values" => [
    [
      "name" => "top"
      "value" => "TOP"
    ]
    [
      "name" => "bottom"
      "value" => "BOTTOM"
    ]
  ]
  "defaultValue" => "TOP"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowEnumComponent {#7979
  +label: "Comment reply position"
  +help: "Display the comment reply form either at the top or bottom of the page. When 'infinite scroll' is enabled the position will always appear at the top."
  +settingsKey: "KBIN_COMMENTS_REPLY_POSITION"
  +values: [
    [
      "name" => "top"
      "value" => "TOP"
    ]
    [
      "name" => "bottom"
      "value" => "BOTTOM"
    ]
  ]
  +defaultValue: "TOP"
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.20 ms
Input props
[
  "label" => "Show Comment Avatars"
  "help" => "Display/hide user avatars when viewing comments on a single thread or post."
  "settingsKey" => "KBIN_COMMENTS_SHOW_USER_AVATAR"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#8037
  +label: "Show Comment Avatars"
  +help: "Display/hide user avatars when viewing comments on a single thread or post."
  +settingsKey: "KBIN_COMMENTS_SHOW_USER_AVATAR"
  +defaultValue: true
  +reloadRequired: true
}
user_actions App\Twig\Components\UserActionsComponent 12.0 MiB 0.77 ms
Input props
[
  "user" => Proxies\__CG__\App\Entity\User {#1970
    +avatar: null
    +cover: null
    +email: "linuxPIPEpower@discuss.tchncs.de"
    +username: "@linuxPIPEpower@discuss.tchncs.de"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729128706 {#1536
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
    +entries: Doctrine\ORM\PersistentCollection {#1631 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
    +posts: Doctrine\ORM\PersistentCollection {#1659 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
    +follows: Doctrine\ORM\PersistentCollection {#1660 …}
    +followers: Doctrine\ORM\PersistentCollection {#1627 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
    +reports: Doctrine\ORM\PersistentCollection {#1425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
    +violations: Doctrine\ORM\PersistentCollection {#1699 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
    +awards: Doctrine\ORM\PersistentCollection {#1430 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
    +categories: Doctrine\ORM\PersistentCollection {#1645 …}
    -id: 86105
    -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
    +apId: "linuxPIPEpower@discuss.tchncs.de"
    +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apFollowersUrl: null
    +apInboxUrl: "https://discuss.tchncs.de/inbox"
    +apDomain: "discuss.tchncs.de"
    +apPreferredUsername: "linuxPIPEpower"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728132845 {#1515
      date: 2024-10-05 14:54:05.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1705651727 {#1516
      date: 2024-01-19 09:08:47.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
]
Attributes
[]
Component
App\Twig\Components\UserActionsComponent {#8114
  +user: Proxies\__CG__\App\Entity\User {#1970
    +avatar: null
    +cover: null
    +email: "linuxPIPEpower@discuss.tchncs.de"
    +username: "@linuxPIPEpower@discuss.tchncs.de"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1729128706 {#1536
      date: 2024-10-17 03:31:46.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#1518 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1520 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#1632 …}
    +entries: Doctrine\ORM\PersistentCollection {#1631 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#1704 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#1712 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1468 …}
    +posts: Doctrine\ORM\PersistentCollection {#1659 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#1487 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1767 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1638 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1492 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1634 …}
    +follows: Doctrine\ORM\PersistentCollection {#1660 …}
    +followers: Doctrine\ORM\PersistentCollection {#1627 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1419 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1412 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1453 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1432 …}
    +reports: Doctrine\ORM\PersistentCollection {#1425 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1435 …}
    +violations: Doctrine\ORM\PersistentCollection {#1699 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1703 …}
    +awards: Doctrine\ORM\PersistentCollection {#1430 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1595 …}
    +categories: Doctrine\ORM\PersistentCollection {#1645 …}
    -id: 86105
    -password: "$2y$13$Rgi337EWK73XZmjZrR9p5eWoelRzbPfN6Qy5guBKm000AhQiYu7w."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1678 …}
    +apId: "linuxPIPEpower@discuss.tchncs.de"
    +apProfileId: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apPublicUrl: "https://discuss.tchncs.de/u/linuxPIPEpower"
    +apFollowersUrl: null
    +apInboxUrl: "https://discuss.tchncs.de/inbox"
    +apDomain: "discuss.tchncs.de"
    +apPreferredUsername: "linuxPIPEpower"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728132845 {#1515
      date: 2024-10-05 14:54:05.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1705651727 {#1516
      date: 2024-01-19 09:08:47.0 +01:00
    }
    +__isInitialized__: true
     …2
  }
}
date App\Twig\Components\DateComponent 12.0 MiB 0.35 ms
Input props
[
  "date" => DateTimeImmutable @1706436525 {#2420
    date: 2024-01-28 11:08:45.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#8175
  +date: DateTimeImmutable @1706436525 {#2420
    date: 2024-01-28 11:08:45.0 +01:00
  }
}
magazine_box App\Twig\Components\MagazineBoxComponent 12.0 MiB 10.47 ms
Input props
[
  "magazine" => App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1385
    +entryCommentCount: 28286
    +postCount: 6
    +postCommentCount: 213
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729134767 {#276
      date: 2024-10-17 05:12:47.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729135037 {#270
      date: 2024-10-17 03:17:17.284546 UTC (+00:00)
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  "showSectionTitle" => true
]
Attributes
[]
Component
App\Twig\Components\MagazineBoxComponent {#8231
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1385
    +entryCommentCount: 28286
    +postCount: 6
    +postCommentCount: 213
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729134767 {#276
      date: 2024-10-17 05:12:47.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729135037 {#270
      date: 2024-10-17 03:17:17.284546 UTC (+00:00)
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +showCover: true
  +showDescription: true
  +showRules: true
  +showSubscribeButton: true
  +showInfo: true
  +showMeta: true
  +showSectionTitle: true
  +stretchedLink: true
}
magazine_sub App\Twig\Components\MagazineSubComponent 12.0 MiB 0.74 ms
Input props
[
  "magazine" => App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1385
    +entryCommentCount: 28286
    +postCount: 6
    +postCommentCount: 213
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729134767 {#276
      date: 2024-10-17 05:12:47.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729135037 {#270
      date: 2024-10-17 03:17:17.284546 UTC (+00:00)
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\MagazineSubComponent {#8289
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1385
    +entryCommentCount: 28286
    +postCount: 6
    +postCommentCount: 213
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729134767 {#276
      date: 2024-10-17 05:12:47.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729135037 {#270
      date: 2024-10-17 03:17:17.284546 UTC (+00:00)
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
}
date App\Twig\Components\DateComponent 12.0 MiB 0.20 ms
Input props
[
  "date" => DateTimeImmutable @1698929468 {#272
    date: 2023-11-02 13:51:08.0 +01:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#8463
  +date: DateTimeImmutable @1698929468 {#272
    date: 2023-11-02 13:51:08.0 +01:00
  }
}
user_inline App\Twig\Components\UserInlineComponent 12.0 MiB 1.40 ms
Input props
[
  "user" => Proxies\__CG__\App\Entity\User {#8522
    +avatar: null
    +cover: null
    +email: "kbin@j0h.nl"
    +username: "Sprite_tm"
    +roles: [
      "ROLE_ADMIN"
    ]
    +followersCount: 0
    +homepage: "front"
    +about: "Hi! I'm Sprite_tm. You may know me from sites like https://spritesmods.com."
    +lastActive: DateTime @1707547382 {#8569
      date: 2024-02-10 07:43:02.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: true
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#8571 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#8573 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#8575 …}
    +entries: Doctrine\ORM\PersistentCollection {#8577 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#8579 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#8581 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#8583 …}
    +posts: Doctrine\ORM\PersistentCollection {#8585 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#8587 …}
    +postComments: Doctrine\ORM\PersistentCollection {#8589 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#8591 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#8593 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#8595 …}
    +follows: Doctrine\ORM\PersistentCollection {#8597 …}
    +followers: Doctrine\ORM\PersistentCollection {#8599 …}
    +blocks: Doctrine\ORM\PersistentCollection {#8601 …}
    +blockers: Doctrine\ORM\PersistentCollection {#8603 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#8605 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#8607 …}
    +reports: Doctrine\ORM\PersistentCollection {#8609 …}
    +favourites: Doctrine\ORM\PersistentCollection {#8611 …}
    +violations: Doctrine\ORM\PersistentCollection {#8613 …}
    +notifications: Doctrine\ORM\PersistentCollection {#8615 …}
    +awards: Doctrine\ORM\PersistentCollection {#8617 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#8619 …}
    +categories: Doctrine\ORM\PersistentCollection {#8621 …}
    -id: 1
    -password: "$2y$13$ZX7Aou2QOPRGkHPp4y5x8OWfxZMoT1BGH7bRLlPP7mwZFTkfiaPGG"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#8623 …}
    +apId: null
    +apProfileId: null
    +apPublicUrl: null
    +apFollowersUrl: null
    +apInboxUrl: null
    +apDomain: null
    +apPreferredUsername: null
    +apDiscoverable: null
    +apManuallyApprovesFollowers: null
    +privateKey: """
      -----BEGIN PRIVATE KEY-----\r\n
      MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQDleeotz5TBiMlC\r\n
      YsJYJHVNxjvnvt0qsQA282B7vdqBTbARfD49iKPiMIwgU2yhCI0oTSQwc2Zy9AQ+\r\n
      31rwmvBx8VvcLgQvKpNzPVhMQjelK7k5iPiPc/W1soaauepq3YwQKgGod4c5Vh9f\r\n
      MInSANfOLOUSo3pUzfaQaGEvQc5DbKjDgIjsv/OKI1acbzu067KQzIThu+1BvcqQ\r\n
      Ypo2Ux5W23nNqkrRZ++z/r1MI2jS3vwi5OSwz4fWhLPJXE6lwokc6b/uAZe7sLT6\r\n
      QQtjevLnmMyRIVnmxbtHPMSfhLdz8ssQhoNCfAkMnBjDUX31SSs67pU8v5O3Fn2H\r\n
      d+qFWCjrREwSpBAd24INJqKsjSa6j3oLL8Xw8HZf+x6QRPJch/c3FNWRtM2b9n8V\r\n
      sAQiD985pafyeQ1TqIe4iSjI0iUgy2WgwO0C1Z0PNbQzQmRk0EOAlxIXjPmB229P\r\n
      V4+OcZxLT9phP/rid1Qt9Ro+2LdkS9Zqe8c2JHeJKc5Nv/8OOX5uQ/B82JXnuXYi\r\n
      /oVEJb5t42G8u3IIkYM5G/Gt033WU6dbyKOBmdnbXaPw9LC3M7oop3yyCb3UDLfg\r\n
      g/XnZVvZxSPCPlh5G1Lb0r47siKq/0k9YRua0AFsVg0dhqfuwsb6G9Hx5EicuPsu\r\n
      OIjXINBTjlnE4SdMz0ZJt7bLjwlKdQIDAQABAoICAAlWo8QHfYs+sMoF0Njbavam\r\n
      SYvNxZxWJacW0mdWu4ylh7O+dZ31cI3k4d7y5inLeksYkI90MsgczAtu9XlzJLPO\r\n
      WamlKcBtoCCBb5Vy4GbVV61SuKLF2krxn+6uAC8nIusJepXLf3JC4fXyuLkWFbIr\r\n
      O4s9od3Pn+gSh1nv+J/fzSJfmbLgwN1vQLgPAsQDD3o7CHFTP318ZsDnclUhnst0\r\n
      FQnckzzgWO3fQP7XNg3WyzX0UKYtW97L+bEJE55FQ2Us0gWyhOU7dLH2casztqzc\r\n
      F/8T91+fzlZAz9OaCAks6Tyb7L2I5KlhtNRF/bU8rAiy6tnVBgLeZG9d3upcQxX0\r\n
      L+SMPWg55qERGI5mO+BxFdUnVtcmswziKmySYtzgm+c4jmPS5cWhGB9HFCTW2S0x\r\n
      GoVA2cZGWjMTrbZQhgJjBqzp76fhLtXTufd328sYmX7fBYKEWFYNwrEJaWYUNl/V\r\n
      yEyl0aMQWKhVokx6eCqnuDZUc77LeuGuCleIdhQ53NYHrXMCmgVyLfmGdrOS3Uh6\r\n
      RrAYmnvvMkAUTOQajW2csC345PmgBOjE7vB7349ylKUkXvN4L+9xZCYaVjBt3O24\r\n
      aRoQSQDGhk+NIaYleiFx+u7dJSryxdx/6ut6dQ2S+jKlm1oN1qq6ppO5y/TFRQ1e\r\n
      qn7kjIGzUT80fANDFqdhAoIBAQD1+cGiWXRQhUrJc5X3ngH1zHoLWpmSZcUUDFn/\r\n
      bV/CChd2M43fOpneIQETZ1oS7BsU3y92kTw63ytYOUg7C5iT5/r9ZoBGq0HZSbll\r\n
      riRJWGiajr2aYCmIes++CrfUvCcD6+l8QMZ3s8eXdk80GX+vt1xEfRpWV9e9huJK\r\n
      K1e8wXfFmPAmxUi63IePscdc+SVQGeooMYDnMwLWvxpAtp5mGOaQc4D5dviWXjSE\r\n
      Z/PJa+gectpD1iDIPUXm3o17ivE2UYFia8/FCGUN6Yz7ucRKF+2SPO8hLefk5UvJ\r\n
      Lxlkh67MXKkneDqRU9C82Qmcfz5nQLQadC0nbE44YeXrnlIdAoIBAQDu1AWMIe6f\r\n
      7TZYCWnTa3nT6penJ9CMaGDPI/62dKTmGnI4oo3u9DGGrnuWbcFFCQA02vcYdpuw\r\n
      CVy6mkP/yqN5VSV3EHZiJUA0aKIxot3o3YOiobpVYn9hwvzzOdMZO4SOuevNfY1c\r\n
      qmnLGhYoDvR1c2yaudCf/BDwQqlLoSg9F5X57bRtwaRyUjhtXVKXWb59qtiwwrvp\r\n
      1vPjxciEIxAtgSXtIUQz3ljDRNUHjpyfYM3ska5jkxMIPNYUYFMX2x+Gxn9PZEG3\r\n
      Im391BRynZsnkvJO6i4i5N1xsPK5SyPiKBnlMxW/6ZLi5aAQHV3cc2KLzV+T+s2B\r\n
      v9LTAyO7nWo5AoIBAASA/jqqyKZwyl3F8AkIq6CEjfeHQSidFG65iyxSJF65MJTJ\r\n
      fN+Jgye+Evb3/X47NIO9UnEpV6D8VR7YbaonHDQZG09ogRDKMfp4jxx9g8yUAdZS\r\n
      psYc3KXTGdqw94y9pTk9KJlN1lR6xjzPvcOGdAATq2zVnZXXJewifCI/iOu73yWP\r\n
      F1aeZiaFwzWuW6goJ7a/wrnZrjKNjI/CEAj/TwcvjYk3lDT9KLAYKX4DKUOW5jko\r\n
      gTacxRzlglIn4Q9SC/iipWvX7YX+EVuf2yUA0cdJiOAUnYxN+uEGEc0tP5nHoju7\r\n
      tp0yZmAi2L+cecCT0+CwHpwdZHZEVWpS4JLf40ECggEBALFSZIgGDZlaU5YL7zHV\r\n
      Q5APRugKDLKjMPW7IPwxINnj2tioAL/hOQBpfkNTXEM4ipmz1fCo57FNUjcOINzD\r\n
      hJqqmHWNmIgIZmJDKeG2rhKenYTblXCeADwCvTKNxWmfoi0iZ6ybwqCBuqjcxoSZ\r\n
      jfHCcGl0+yw9yAnLRM1ta2XopCb70ZIIS2PCHjk9J/xN2ryNY/PhsgnN2ilMiTNq\r\n
      oTFYCWPF5lCojrj020KQJUPEaUBzbcpqwZ/FI6HfXvKAdCjqKk40/wHNI2Np2oC6\r\n
      +h7o4NWs0/J+gNhP6/edjZf19DwTsNtbvf6PRUeRtkXeudVY99T0Sy9B0HNxik9b\r\n
      cikCggEAM2wassiP1i0Gc3wrbNLHyQN+yqMaAp0xF+8l0fU3T8zPL/tYDcITnZPY\r\n
      pEFV/aodP9X7XFuQD0iGTOTGDXiMSLPOLI/ifmwbT41rgIN9x14MpU2EtWeVz7sx\r\n
      ZIFMt98rHx6BsZx/DnSFDQ8iqrKF3u+OOv7s6j+8odz4Rq53+16vMev5VUMOPq+E\r\n
      aQn8SDKkOjZzwb9QGB9bXS5s9yyj4pLyggQ0O5S2ugZjUcmCecNpktN8bUR3I9VQ\r\n
      KWkcQa9yCpidp/JYrQtlbqAPiIzptA4T4RNh+F6pKbmw7hNMIPipPzbQezEMaBOn\r\n
      Cgb38EldyAVGjCzRGfhu9SNU9B03bg==\r\n
      -----END PRIVATE KEY-----
      """
    +publicKey: """
      -----BEGIN PUBLIC KEY-----\r\n
      MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA5XnqLc+UwYjJQmLCWCR1\r\n
      TcY7577dKrEANvNge73agU2wEXw+PYij4jCMIFNsoQiNKE0kMHNmcvQEPt9a8Jrw\r\n
      cfFb3C4ELyqTcz1YTEI3pSu5OYj4j3P1tbKGmrnqat2MECoBqHeHOVYfXzCJ0gDX\r\n
      zizlEqN6VM32kGhhL0HOQ2yow4CI7L/ziiNWnG87tOuykMyE4bvtQb3KkGKaNlMe\r\n
      Vtt5zapK0Wfvs/69TCNo0t78IuTksM+H1oSzyVxOpcKJHOm/7gGXu7C0+kELY3ry\r\n
      55jMkSFZ5sW7RzzEn4S3c/LLEIaDQnwJDJwYw1F99UkrOu6VPL+TtxZ9h3fqhVgo\r\n
      60RMEqQQHduCDSairI0muo96Cy/F8PB2X/sekETyXIf3NxTVkbTNm/Z/FbAEIg/f\r\n
      OaWn8nkNU6iHuIkoyNIlIMtloMDtAtWdDzW0M0JkZNBDgJcSF4z5gdtvT1ePjnGc\r\n
      S0/aYT/64ndULfUaPti3ZEvWanvHNiR3iSnOTb//Djl+bkPwfNiV57l2Iv6FRCW+\r\n
      beNhvLtyCJGDORvxrdN91lOnW8ijgZnZ212j8PSwtzO6KKd8sgm91Ay34IP152Vb\r\n
      2cUjwj5YeRtS29K+O7Iiqv9JPWEbmtABbFYNHYan7sLG+hvR8eRInLj7LjiI1yDQ\r\n
      U45ZxOEnTM9GSbe2y48JSnUCAwEAAQ==\r\n
      -----END PUBLIC KEY-----
      """
    +apFetchedAt: null
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1686560440 {#8570
      date: 2023-06-12 11:00:40.0 +02:00
    }
    +__isInitialized__: true
     …2
  }
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#8540
  +user: Proxies\__CG__\App\Entity\User {#8522
    +avatar: null
    +cover: null
    +email: "kbin@j0h.nl"
    +username: "Sprite_tm"
    +roles: [
      "ROLE_ADMIN"
    ]
    +followersCount: 0
    +homepage: "front"
    +about: "Hi! I'm Sprite_tm. You may know me from sites like https://spritesmods.com."
    +lastActive: DateTime @1707547382 {#8569
      date: 2024-02-10 07:43:02.0 +01:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: true
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#8571 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#8573 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#8575 …}
    +entries: Doctrine\ORM\PersistentCollection {#8577 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#8579 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#8581 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#8583 …}
    +posts: Doctrine\ORM\PersistentCollection {#8585 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#8587 …}
    +postComments: Doctrine\ORM\PersistentCollection {#8589 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#8591 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#8593 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#8595 …}
    +follows: Doctrine\ORM\PersistentCollection {#8597 …}
    +followers: Doctrine\ORM\PersistentCollection {#8599 …}
    +blocks: Doctrine\ORM\PersistentCollection {#8601 …}
    +blockers: Doctrine\ORM\PersistentCollection {#8603 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#8605 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#8607 …}
    +reports: Doctrine\ORM\PersistentCollection {#8609 …}
    +favourites: Doctrine\ORM\PersistentCollection {#8611 …}
    +violations: Doctrine\ORM\PersistentCollection {#8613 …}
    +notifications: Doctrine\ORM\PersistentCollection {#8615 …}
    +awards: Doctrine\ORM\PersistentCollection {#8617 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#8619 …}
    +categories: Doctrine\ORM\PersistentCollection {#8621 …}
    -id: 1
    -password: "$2y$13$ZX7Aou2QOPRGkHPp4y5x8OWfxZMoT1BGH7bRLlPP7mwZFTkfiaPGG"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#8623 …}
    +apId: null
    +apProfileId: null
    +apPublicUrl: null
    +apFollowersUrl: null
    +apInboxUrl: null
    +apDomain: null
    +apPreferredUsername: null
    +apDiscoverable: null
    +apManuallyApprovesFollowers: null
    +privateKey: """
      -----BEGIN PRIVATE KEY-----\r\n
      MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQDleeotz5TBiMlC\r\n
      YsJYJHVNxjvnvt0qsQA282B7vdqBTbARfD49iKPiMIwgU2yhCI0oTSQwc2Zy9AQ+\r\n
      31rwmvBx8VvcLgQvKpNzPVhMQjelK7k5iPiPc/W1soaauepq3YwQKgGod4c5Vh9f\r\n
      MInSANfOLOUSo3pUzfaQaGEvQc5DbKjDgIjsv/OKI1acbzu067KQzIThu+1BvcqQ\r\n
      Ypo2Ux5W23nNqkrRZ++z/r1MI2jS3vwi5OSwz4fWhLPJXE6lwokc6b/uAZe7sLT6\r\n
      QQtjevLnmMyRIVnmxbtHPMSfhLdz8ssQhoNCfAkMnBjDUX31SSs67pU8v5O3Fn2H\r\n
      d+qFWCjrREwSpBAd24INJqKsjSa6j3oLL8Xw8HZf+x6QRPJch/c3FNWRtM2b9n8V\r\n
      sAQiD985pafyeQ1TqIe4iSjI0iUgy2WgwO0C1Z0PNbQzQmRk0EOAlxIXjPmB229P\r\n
      V4+OcZxLT9phP/rid1Qt9Ro+2LdkS9Zqe8c2JHeJKc5Nv/8OOX5uQ/B82JXnuXYi\r\n
      /oVEJb5t42G8u3IIkYM5G/Gt033WU6dbyKOBmdnbXaPw9LC3M7oop3yyCb3UDLfg\r\n
      g/XnZVvZxSPCPlh5G1Lb0r47siKq/0k9YRua0AFsVg0dhqfuwsb6G9Hx5EicuPsu\r\n
      OIjXINBTjlnE4SdMz0ZJt7bLjwlKdQIDAQABAoICAAlWo8QHfYs+sMoF0Njbavam\r\n
      SYvNxZxWJacW0mdWu4ylh7O+dZ31cI3k4d7y5inLeksYkI90MsgczAtu9XlzJLPO\r\n
      WamlKcBtoCCBb5Vy4GbVV61SuKLF2krxn+6uAC8nIusJepXLf3JC4fXyuLkWFbIr\r\n
      O4s9od3Pn+gSh1nv+J/fzSJfmbLgwN1vQLgPAsQDD3o7CHFTP318ZsDnclUhnst0\r\n
      FQnckzzgWO3fQP7XNg3WyzX0UKYtW97L+bEJE55FQ2Us0gWyhOU7dLH2casztqzc\r\n
      F/8T91+fzlZAz9OaCAks6Tyb7L2I5KlhtNRF/bU8rAiy6tnVBgLeZG9d3upcQxX0\r\n
      L+SMPWg55qERGI5mO+BxFdUnVtcmswziKmySYtzgm+c4jmPS5cWhGB9HFCTW2S0x\r\n
      GoVA2cZGWjMTrbZQhgJjBqzp76fhLtXTufd328sYmX7fBYKEWFYNwrEJaWYUNl/V\r\n
      yEyl0aMQWKhVokx6eCqnuDZUc77LeuGuCleIdhQ53NYHrXMCmgVyLfmGdrOS3Uh6\r\n
      RrAYmnvvMkAUTOQajW2csC345PmgBOjE7vB7349ylKUkXvN4L+9xZCYaVjBt3O24\r\n
      aRoQSQDGhk+NIaYleiFx+u7dJSryxdx/6ut6dQ2S+jKlm1oN1qq6ppO5y/TFRQ1e\r\n
      qn7kjIGzUT80fANDFqdhAoIBAQD1+cGiWXRQhUrJc5X3ngH1zHoLWpmSZcUUDFn/\r\n
      bV/CChd2M43fOpneIQETZ1oS7BsU3y92kTw63ytYOUg7C5iT5/r9ZoBGq0HZSbll\r\n
      riRJWGiajr2aYCmIes++CrfUvCcD6+l8QMZ3s8eXdk80GX+vt1xEfRpWV9e9huJK\r\n
      K1e8wXfFmPAmxUi63IePscdc+SVQGeooMYDnMwLWvxpAtp5mGOaQc4D5dviWXjSE\r\n
      Z/PJa+gectpD1iDIPUXm3o17ivE2UYFia8/FCGUN6Yz7ucRKF+2SPO8hLefk5UvJ\r\n
      Lxlkh67MXKkneDqRU9C82Qmcfz5nQLQadC0nbE44YeXrnlIdAoIBAQDu1AWMIe6f\r\n
      7TZYCWnTa3nT6penJ9CMaGDPI/62dKTmGnI4oo3u9DGGrnuWbcFFCQA02vcYdpuw\r\n
      CVy6mkP/yqN5VSV3EHZiJUA0aKIxot3o3YOiobpVYn9hwvzzOdMZO4SOuevNfY1c\r\n
      qmnLGhYoDvR1c2yaudCf/BDwQqlLoSg9F5X57bRtwaRyUjhtXVKXWb59qtiwwrvp\r\n
      1vPjxciEIxAtgSXtIUQz3ljDRNUHjpyfYM3ska5jkxMIPNYUYFMX2x+Gxn9PZEG3\r\n
      Im391BRynZsnkvJO6i4i5N1xsPK5SyPiKBnlMxW/6ZLi5aAQHV3cc2KLzV+T+s2B\r\n
      v9LTAyO7nWo5AoIBAASA/jqqyKZwyl3F8AkIq6CEjfeHQSidFG65iyxSJF65MJTJ\r\n
      fN+Jgye+Evb3/X47NIO9UnEpV6D8VR7YbaonHDQZG09ogRDKMfp4jxx9g8yUAdZS\r\n
      psYc3KXTGdqw94y9pTk9KJlN1lR6xjzPvcOGdAATq2zVnZXXJewifCI/iOu73yWP\r\n
      F1aeZiaFwzWuW6goJ7a/wrnZrjKNjI/CEAj/TwcvjYk3lDT9KLAYKX4DKUOW5jko\r\n
      gTacxRzlglIn4Q9SC/iipWvX7YX+EVuf2yUA0cdJiOAUnYxN+uEGEc0tP5nHoju7\r\n
      tp0yZmAi2L+cecCT0+CwHpwdZHZEVWpS4JLf40ECggEBALFSZIgGDZlaU5YL7zHV\r\n
      Q5APRugKDLKjMPW7IPwxINnj2tioAL/hOQBpfkNTXEM4ipmz1fCo57FNUjcOINzD\r\n
      hJqqmHWNmIgIZmJDKeG2rhKenYTblXCeADwCvTKNxWmfoi0iZ6ybwqCBuqjcxoSZ\r\n
      jfHCcGl0+yw9yAnLRM1ta2XopCb70ZIIS2PCHjk9J/xN2ryNY/PhsgnN2ilMiTNq\r\n
      oTFYCWPF5lCojrj020KQJUPEaUBzbcpqwZ/FI6HfXvKAdCjqKk40/wHNI2Np2oC6\r\n
      +h7o4NWs0/J+gNhP6/edjZf19DwTsNtbvf6PRUeRtkXeudVY99T0Sy9B0HNxik9b\r\n
      cikCggEAM2wassiP1i0Gc3wrbNLHyQN+yqMaAp0xF+8l0fU3T8zPL/tYDcITnZPY\r\n
      pEFV/aodP9X7XFuQD0iGTOTGDXiMSLPOLI/ifmwbT41rgIN9x14MpU2EtWeVz7sx\r\n
      ZIFMt98rHx6BsZx/DnSFDQ8iqrKF3u+OOv7s6j+8odz4Rq53+16vMev5VUMOPq+E\r\n
      aQn8SDKkOjZzwb9QGB9bXS5s9yyj4pLyggQ0O5S2ugZjUcmCecNpktN8bUR3I9VQ\r\n
      KWkcQa9yCpidp/JYrQtlbqAPiIzptA4T4RNh+F6pKbmw7hNMIPipPzbQezEMaBOn\r\n
      Cgb38EldyAVGjCzRGfhu9SNU9B03bg==\r\n
      -----END PRIVATE KEY-----
      """
    +publicKey: """
      -----BEGIN PUBLIC KEY-----\r\n
      MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA5XnqLc+UwYjJQmLCWCR1\r\n
      TcY7577dKrEANvNge73agU2wEXw+PYij4jCMIFNsoQiNKE0kMHNmcvQEPt9a8Jrw\r\n
      cfFb3C4ELyqTcz1YTEI3pSu5OYj4j3P1tbKGmrnqat2MECoBqHeHOVYfXzCJ0gDX\r\n
      zizlEqN6VM32kGhhL0HOQ2yow4CI7L/ziiNWnG87tOuykMyE4bvtQb3KkGKaNlMe\r\n
      Vtt5zapK0Wfvs/69TCNo0t78IuTksM+H1oSzyVxOpcKJHOm/7gGXu7C0+kELY3ry\r\n
      55jMkSFZ5sW7RzzEn4S3c/LLEIaDQnwJDJwYw1F99UkrOu6VPL+TtxZ9h3fqhVgo\r\n
      60RMEqQQHduCDSairI0muo96Cy/F8PB2X/sekETyXIf3NxTVkbTNm/Z/FbAEIg/f\r\n
      OaWn8nkNU6iHuIkoyNIlIMtloMDtAtWdDzW0M0JkZNBDgJcSF4z5gdtvT1ePjnGc\r\n
      S0/aYT/64ndULfUaPti3ZEvWanvHNiR3iSnOTb//Djl+bkPwfNiV57l2Iv6FRCW+\r\n
      beNhvLtyCJGDORvxrdN91lOnW8ijgZnZ212j8PSwtzO6KKd8sgm91Ay34IP152Vb\r\n
      2cUjwj5YeRtS29K+O7Iiqv9JPWEbmtABbFYNHYan7sLG+hvR8eRInLj7LjiI1yDQ\r\n
      U45ZxOEnTM9GSbe2y48JSnUCAwEAAQ==\r\n
      -----END PUBLIC KEY-----
      """
    +apFetchedAt: null
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1686560440 {#8570
      date: 2023-06-12 11:00:40.0 +02:00
    }
    +__isInitialized__: true
     …2
  }
  +showAvatar: true
}
related_magazines App\Twig\Components\RelatedMagazinesComponent 12.0 MiB 33.53 ms
Input props
[
  "magazine" => "linux@lemmy.ml"
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedMagazinesComponent {#8731
  +limit: 4
  +tag: null
  +magazine: "linux@lemmy.ml"
  +type: "magazine"
  +title: "related_magazines"
  +refreshedRandom: false
  -repository: App\Repository\MagazineRepository {#334 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
active_users App\Twig\Components\ActiveUsersComponent 12.0 MiB 728.98 ms
Input props
[
  "magazine" => App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1385
    +entryCommentCount: 28286
    +postCount: 6
    +postCommentCount: 213
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729134767 {#276
      date: 2024-10-17 05:12:47.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729135037 {#270
      date: 2024-10-17 03:17:17.284546 UTC (+00:00)
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\ActiveUsersComponent {#8857
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1385
    +entryCommentCount: 28286
    +postCount: 6
    +postCommentCount: 213
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729134767 {#276
      date: 2024-10-17 05:12:47.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729135037 {#270
      date: 2024-10-17 03:17:17.284546 UTC (+00:00)
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  -userRepository: App\Repository\UserRepository {#603 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.59 ms
Input props
[
  "user" => App\Entity\User {#9019
    +avatar: Proxies\__CG__\App\Entity\Image {#9018 …}
    +cover: null
    +email: "ugjka@lemmy.world"
    +username: "@ugjka@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "[ugjka.net](https://ugjka.net)"
    +lastActive: DateTime @1727066920 {#9022
      date: 2024-09-23 06:48:40.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9017 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9015 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9013 …}
    +entries: Doctrine\ORM\PersistentCollection {#9011 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9009 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9007 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9005 …}
    +posts: Doctrine\ORM\PersistentCollection {#9003 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9001 …}
    +postComments: Doctrine\ORM\PersistentCollection {#8999 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#8997 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#8995 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#8993 …}
    +follows: Doctrine\ORM\PersistentCollection {#8991 …}
    +followers: Doctrine\ORM\PersistentCollection {#8989 …}
    +blocks: Doctrine\ORM\PersistentCollection {#8987 …}
    +blockers: Doctrine\ORM\PersistentCollection {#8985 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#8983 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#8981 …}
    +reports: Doctrine\ORM\PersistentCollection {#8979 …}
    +favourites: Doctrine\ORM\PersistentCollection {#8977 …}
    +violations: Doctrine\ORM\PersistentCollection {#8975 …}
    +notifications: Doctrine\ORM\PersistentCollection {#8973 …}
    +awards: Doctrine\ORM\PersistentCollection {#8971 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#8969 …}
    +categories: Doctrine\ORM\PersistentCollection {#8967 …}
    -id: 74308
    -password: "$2y$13$cb2BJmGMcYq7Lt.blp1Qf.h.37J2bnqmlgOeEVkBEcjYku6jXxonW"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#8965 …}
    +apId: "ugjka@lemmy.world"
    +apProfileId: "https://lemmy.world/u/ugjka"
    +apPublicUrl: "https://lemmy.world/u/ugjka"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "ugjka"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1705448316 {#9021
      date: 2024-01-17 00:38:36.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1699716147 {#9020
      date: 2023-11-11 16:22:27.0 +01:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#8913
  +width: 65
  +height: 65
  +user: App\Entity\User {#9019
    +avatar: Proxies\__CG__\App\Entity\Image {#9018 …}
    +cover: null
    +email: "ugjka@lemmy.world"
    +username: "@ugjka@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "[ugjka.net](https://ugjka.net)"
    +lastActive: DateTime @1727066920 {#9022
      date: 2024-09-23 06:48:40.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9017 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9015 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9013 …}
    +entries: Doctrine\ORM\PersistentCollection {#9011 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9009 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9007 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9005 …}
    +posts: Doctrine\ORM\PersistentCollection {#9003 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9001 …}
    +postComments: Doctrine\ORM\PersistentCollection {#8999 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#8997 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#8995 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#8993 …}
    +follows: Doctrine\ORM\PersistentCollection {#8991 …}
    +followers: Doctrine\ORM\PersistentCollection {#8989 …}
    +blocks: Doctrine\ORM\PersistentCollection {#8987 …}
    +blockers: Doctrine\ORM\PersistentCollection {#8985 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#8983 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#8981 …}
    +reports: Doctrine\ORM\PersistentCollection {#8979 …}
    +favourites: Doctrine\ORM\PersistentCollection {#8977 …}
    +violations: Doctrine\ORM\PersistentCollection {#8975 …}
    +notifications: Doctrine\ORM\PersistentCollection {#8973 …}
    +awards: Doctrine\ORM\PersistentCollection {#8971 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#8969 …}
    +categories: Doctrine\ORM\PersistentCollection {#8967 …}
    -id: 74308
    -password: "$2y$13$cb2BJmGMcYq7Lt.blp1Qf.h.37J2bnqmlgOeEVkBEcjYku6jXxonW"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#8965 …}
    +apId: "ugjka@lemmy.world"
    +apProfileId: "https://lemmy.world/u/ugjka"
    +apPublicUrl: "https://lemmy.world/u/ugjka"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "ugjka"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1705448316 {#9021
      date: 2024-01-17 00:38:36.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1699716147 {#9020
      date: 2023-11-11 16:22:27.0 +01:00
    }
  }
  +asLink: true
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.31 ms
Input props
[
  "user" => App\Entity\User {#9915
    +avatar: Proxies\__CG__\App\Entity\Image {#9916 …}
    +cover: Proxies\__CG__\App\Entity\Image {#9917 …}
    +email: "HiddenLayer5@lemmy.ml"
    +username: "@HiddenLayer5@lemmy.ml"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      (He/him) Marxist-Leninist and amateur writer. I like cats, foxes, sci-fi, science fantasy, and Pokemon Mystery Dungeon. Message me for my roleplay ideas!\n
      \n
      Lemmygrad: [lemmygrad.ml/u/HiddenLayer5](https://lemmygrad.ml/u/HiddenLayer5)\n
      \n
      Discord: LinuxFennekin#5514\n
      \n
      Reddit: /u/HiddenLayer5
      """
    +lastActive: DateTime @1712619478 {#9912
      date: 2024-04-09 01:37:58.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9918 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9920 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9922 …}
    +entries: Doctrine\ORM\PersistentCollection {#9924 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9926 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9928 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9930 …}
    +posts: Doctrine\ORM\PersistentCollection {#9932 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9934 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9936 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9938 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9940 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9942 …}
    +follows: Doctrine\ORM\PersistentCollection {#9944 …}
    +followers: Doctrine\ORM\PersistentCollection {#9946 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9948 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9950 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9952 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9954 …}
    +reports: Doctrine\ORM\PersistentCollection {#9956 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9958 …}
    +violations: Doctrine\ORM\PersistentCollection {#9960 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9962 …}
    +awards: Doctrine\ORM\PersistentCollection {#9964 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9966 …}
    +categories: Doctrine\ORM\PersistentCollection {#9968 …}
    -id: 33539
    -password: "$2y$13$Rom38xutfzHBl03ExqICm.tjw6GG0Rqu5fkXGr/0g0SIvlArwO8Hq"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9970 …}
    +apId: "HiddenLayer5@lemmy.ml"
    +apProfileId: "https://lemmy.ml/u/HiddenLayer5"
    +apPublicUrl: "https://lemmy.ml/u/HiddenLayer5"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "HiddenLayer5"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1708559893 {#9913
      date: 2024-02-22 00:58:13.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690083559 {#9914
      date: 2023-07-23 05:39:19.0 +02:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#10918
  +width: 65
  +height: 65
  +user: App\Entity\User {#9915
    +avatar: Proxies\__CG__\App\Entity\Image {#9916 …}
    +cover: Proxies\__CG__\App\Entity\Image {#9917 …}
    +email: "HiddenLayer5@lemmy.ml"
    +username: "@HiddenLayer5@lemmy.ml"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      (He/him) Marxist-Leninist and amateur writer. I like cats, foxes, sci-fi, science fantasy, and Pokemon Mystery Dungeon. Message me for my roleplay ideas!\n
      \n
      Lemmygrad: [lemmygrad.ml/u/HiddenLayer5](https://lemmygrad.ml/u/HiddenLayer5)\n
      \n
      Discord: LinuxFennekin#5514\n
      \n
      Reddit: /u/HiddenLayer5
      """
    +lastActive: DateTime @1712619478 {#9912
      date: 2024-04-09 01:37:58.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9918 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9920 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9922 …}
    +entries: Doctrine\ORM\PersistentCollection {#9924 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9926 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9928 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9930 …}
    +posts: Doctrine\ORM\PersistentCollection {#9932 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9934 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9936 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9938 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9940 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9942 …}
    +follows: Doctrine\ORM\PersistentCollection {#9944 …}
    +followers: Doctrine\ORM\PersistentCollection {#9946 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9948 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9950 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9952 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9954 …}
    +reports: Doctrine\ORM\PersistentCollection {#9956 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9958 …}
    +violations: Doctrine\ORM\PersistentCollection {#9960 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9962 …}
    +awards: Doctrine\ORM\PersistentCollection {#9964 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9966 …}
    +categories: Doctrine\ORM\PersistentCollection {#9968 …}
    -id: 33539
    -password: "$2y$13$Rom38xutfzHBl03ExqICm.tjw6GG0Rqu5fkXGr/0g0SIvlArwO8Hq"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9970 …}
    +apId: "HiddenLayer5@lemmy.ml"
    +apProfileId: "https://lemmy.ml/u/HiddenLayer5"
    +apPublicUrl: "https://lemmy.ml/u/HiddenLayer5"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "HiddenLayer5"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1708559893 {#9913
      date: 2024-02-22 00:58:13.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1690083559 {#9914
      date: 2023-07-23 05:39:19.0 +02:00
    }
  }
  +asLink: true
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.33 ms
Input props
[
  "user" => App\Entity\User {#9336
    +avatar: Proxies\__CG__\App\Entity\Image {#9333 …}
    +cover: Proxies\__CG__\App\Entity\Image {#9334 …}
    +email: "mmstick@lemmy.world"
    +username: "@mmstick@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      I’m a System76 engineer / Pop!_OS maintainer. I’ve been a Linux user since 2007; and Rust since 2015. I’m currently working on COSMIC-related projects.\n
      \n
      - [GitHub](https://github.com/mmstick)\n
      - [Matrix](https://matrix.to/#/@mmstick:matrix.org)
      """
    +lastActive: DateTime @1725481382 {#9337
      date: 2024-09-04 22:23:02.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9331 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9329 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9327 …}
    +entries: Doctrine\ORM\PersistentCollection {#9325 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9323 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9321 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9319 …}
    +posts: Doctrine\ORM\PersistentCollection {#9317 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9315 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9313 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9311 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9309 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9307 …}
    +follows: Doctrine\ORM\PersistentCollection {#9305 …}
    +followers: Doctrine\ORM\PersistentCollection {#9303 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9301 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9299 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9297 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9295 …}
    +reports: Doctrine\ORM\PersistentCollection {#9293 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9291 …}
    +violations: Doctrine\ORM\PersistentCollection {#9289 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9287 …}
    +awards: Doctrine\ORM\PersistentCollection {#9285 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9283 …}
    +categories: Doctrine\ORM\PersistentCollection {#9281 …}
    -id: 74026
    -password: "$2y$13$0tzOHfGkn8TmN3FWcU1seu5C5MBZQpwvFmG9r2gIWIsw5gI0k2Kmi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9279 …}
    +apId: "mmstick@lemmy.world"
    +apProfileId: "https://lemmy.world/u/mmstick"
    +apPublicUrl: "https://lemmy.world/u/mmstick"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "mmstick"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1721936035 {#9338
      date: 2024-07-25 21:33:55.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1699662330 {#9335
      date: 2023-11-11 01:25:30.0 +01:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#10975
  +width: 65
  +height: 65
  +user: App\Entity\User {#9336
    +avatar: Proxies\__CG__\App\Entity\Image {#9333 …}
    +cover: Proxies\__CG__\App\Entity\Image {#9334 …}
    +email: "mmstick@lemmy.world"
    +username: "@mmstick@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      I’m a System76 engineer / Pop!_OS maintainer. I’ve been a Linux user since 2007; and Rust since 2015. I’m currently working on COSMIC-related projects.\n
      \n
      - [GitHub](https://github.com/mmstick)\n
      - [Matrix](https://matrix.to/#/@mmstick:matrix.org)
      """
    +lastActive: DateTime @1725481382 {#9337
      date: 2024-09-04 22:23:02.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9331 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9329 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9327 …}
    +entries: Doctrine\ORM\PersistentCollection {#9325 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9323 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9321 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9319 …}
    +posts: Doctrine\ORM\PersistentCollection {#9317 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9315 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9313 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9311 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9309 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9307 …}
    +follows: Doctrine\ORM\PersistentCollection {#9305 …}
    +followers: Doctrine\ORM\PersistentCollection {#9303 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9301 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9299 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9297 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9295 …}
    +reports: Doctrine\ORM\PersistentCollection {#9293 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9291 …}
    +violations: Doctrine\ORM\PersistentCollection {#9289 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9287 …}
    +awards: Doctrine\ORM\PersistentCollection {#9285 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9283 …}
    +categories: Doctrine\ORM\PersistentCollection {#9281 …}
    -id: 74026
    -password: "$2y$13$0tzOHfGkn8TmN3FWcU1seu5C5MBZQpwvFmG9r2gIWIsw5gI0k2Kmi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9279 …}
    +apId: "mmstick@lemmy.world"
    +apProfileId: "https://lemmy.world/u/mmstick"
    +apPublicUrl: "https://lemmy.world/u/mmstick"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "mmstick"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1721936035 {#9338
      date: 2024-07-25 21:33:55.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1699662330 {#9335
      date: 2023-11-11 01:25:30.0 +01:00
    }
  }
  +asLink: true
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.29 ms
Input props
[
  "user" => App\Entity\User {#9197
    +avatar: Proxies\__CG__\App\Entity\Image {#9196 …}
    +cover: null
    +email: "Donebrach@lemmy.world"
    +username: "@Donebrach@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Here from Reddit–might stay a while."
    +lastActive: DateTime @1728464992 {#9200
      date: 2024-10-09 11:09:52.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9195 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9193 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9191 …}
    +entries: Doctrine\ORM\PersistentCollection {#9189 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9187 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9185 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9183 …}
    +posts: Doctrine\ORM\PersistentCollection {#9181 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9179 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9177 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9175 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9173 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9171 …}
    +follows: Doctrine\ORM\PersistentCollection {#9169 …}
    +followers: Doctrine\ORM\PersistentCollection {#9167 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9165 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9163 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9161 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9159 …}
    +reports: Doctrine\ORM\PersistentCollection {#9157 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9155 …}
    +violations: Doctrine\ORM\PersistentCollection {#9153 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9151 …}
    +awards: Doctrine\ORM\PersistentCollection {#9149 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9147 …}
    +categories: Doctrine\ORM\PersistentCollection {#9145 …}
    -id: 27792
    -password: "$2y$13$tfxSguUAAcLCBCr9s0qVh.tEcOmShuqGkDU3n/QDJuFhtbvn1mD8O"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9143 …}
    +apId: "Donebrach@lemmy.world"
    +apProfileId: "https://lemmy.world/u/Donebrach"
    +apPublicUrl: "https://lemmy.world/u/Donebrach"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "Donebrach"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1727155248 {#9199
      date: 2024-09-24 07:20:48.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1689378071 {#9198
      date: 2023-07-15 01:41:11.0 +02:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#11032
  +width: 65
  +height: 65
  +user: App\Entity\User {#9197
    +avatar: Proxies\__CG__\App\Entity\Image {#9196 …}
    +cover: null
    +email: "Donebrach@lemmy.world"
    +username: "@Donebrach@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "Here from Reddit–might stay a while."
    +lastActive: DateTime @1728464992 {#9200
      date: 2024-10-09 11:09:52.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9195 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9193 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9191 …}
    +entries: Doctrine\ORM\PersistentCollection {#9189 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9187 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9185 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9183 …}
    +posts: Doctrine\ORM\PersistentCollection {#9181 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9179 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9177 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9175 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9173 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9171 …}
    +follows: Doctrine\ORM\PersistentCollection {#9169 …}
    +followers: Doctrine\ORM\PersistentCollection {#9167 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9165 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9163 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9161 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9159 …}
    +reports: Doctrine\ORM\PersistentCollection {#9157 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9155 …}
    +violations: Doctrine\ORM\PersistentCollection {#9153 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9151 …}
    +awards: Doctrine\ORM\PersistentCollection {#9149 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9147 …}
    +categories: Doctrine\ORM\PersistentCollection {#9145 …}
    -id: 27792
    -password: "$2y$13$tfxSguUAAcLCBCr9s0qVh.tEcOmShuqGkDU3n/QDJuFhtbvn1mD8O"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9143 …}
    +apId: "Donebrach@lemmy.world"
    +apProfileId: "https://lemmy.world/u/Donebrach"
    +apPublicUrl: "https://lemmy.world/u/Donebrach"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "Donebrach"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1727155248 {#9199
      date: 2024-09-24 07:20:48.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1689378071 {#9198
      date: 2023-07-15 01:41:11.0 +02:00
    }
  }
  +asLink: true
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.35 ms
Input props
[
  "user" => App\Entity\User {#10511
    +avatar: Proxies\__CG__\App\Entity\Image {#10512 …}
    +cover: null
    +email: "keydelk@fosstodon.org"
    +username: "@keydelk@fosstodon.org"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "I'm a father of two cool kids, husband to a most incredible woman and human servant to three cats and a dog. I work as a Business Analyst in Denver. On my spare time I like tinkering with electronics and computers, playing D&amp;D, reading and philosophy"
    +lastActive: DateTime @1726414518 {#10508
      date: 2024-09-15 17:35:18.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#10513 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#10515 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#10517 …}
    +entries: Doctrine\ORM\PersistentCollection {#10519 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#10521 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#10523 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#10525 …}
    +posts: Doctrine\ORM\PersistentCollection {#10527 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#10529 …}
    +postComments: Doctrine\ORM\PersistentCollection {#10531 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#10533 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#10535 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#10537 …}
    +follows: Doctrine\ORM\PersistentCollection {#10539 …}
    +followers: Doctrine\ORM\PersistentCollection {#10541 …}
    +blocks: Doctrine\ORM\PersistentCollection {#10543 …}
    +blockers: Doctrine\ORM\PersistentCollection {#10545 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#10547 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#10549 …}
    +reports: Doctrine\ORM\PersistentCollection {#10551 …}
    +favourites: Doctrine\ORM\PersistentCollection {#10553 …}
    +violations: Doctrine\ORM\PersistentCollection {#10555 …}
    +notifications: Doctrine\ORM\PersistentCollection {#10557 …}
    +awards: Doctrine\ORM\PersistentCollection {#10559 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#10561 …}
    +categories: Doctrine\ORM\PersistentCollection {#10563 …}
    -id: 92307
    -password: "$2y$13$gci0FdWDGMbePkWmTw952uM6Vs6.IPUh2H25oyhsbjJkSf3g9gbBa"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#10565 …}
    +apId: "keydelk@fosstodon.org"
    +apProfileId: "https://fosstodon.org/users/keydelk"
    +apPublicUrl: "https://fosstodon.org/@keydelk"
    +apFollowersUrl: "https://fosstodon.org/users/keydelk/followers"
    +apInboxUrl: "https://fosstodon.org/inbox"
    +apDomain: "fosstodon.org"
    +apPreferredUsername: "keydelk"
    +apDiscoverable: false
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1726414434 {#10509
      date: 2024-09-15 17:33:54.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1726414433 {#10510
      date: 2024-09-15 17:33:53.0 +02:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#11089
  +width: 65
  +height: 65
  +user: App\Entity\User {#10511
    +avatar: Proxies\__CG__\App\Entity\Image {#10512 …}
    +cover: null
    +email: "keydelk@fosstodon.org"
    +username: "@keydelk@fosstodon.org"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: "I'm a father of two cool kids, husband to a most incredible woman and human servant to three cats and a dog. I work as a Business Analyst in Denver. On my spare time I like tinkering with electronics and computers, playing D&amp;D, reading and philosophy"
    +lastActive: DateTime @1726414518 {#10508
      date: 2024-09-15 17:35:18.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#10513 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#10515 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#10517 …}
    +entries: Doctrine\ORM\PersistentCollection {#10519 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#10521 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#10523 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#10525 …}
    +posts: Doctrine\ORM\PersistentCollection {#10527 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#10529 …}
    +postComments: Doctrine\ORM\PersistentCollection {#10531 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#10533 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#10535 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#10537 …}
    +follows: Doctrine\ORM\PersistentCollection {#10539 …}
    +followers: Doctrine\ORM\PersistentCollection {#10541 …}
    +blocks: Doctrine\ORM\PersistentCollection {#10543 …}
    +blockers: Doctrine\ORM\PersistentCollection {#10545 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#10547 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#10549 …}
    +reports: Doctrine\ORM\PersistentCollection {#10551 …}
    +favourites: Doctrine\ORM\PersistentCollection {#10553 …}
    +violations: Doctrine\ORM\PersistentCollection {#10555 …}
    +notifications: Doctrine\ORM\PersistentCollection {#10557 …}
    +awards: Doctrine\ORM\PersistentCollection {#10559 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#10561 …}
    +categories: Doctrine\ORM\PersistentCollection {#10563 …}
    -id: 92307
    -password: "$2y$13$gci0FdWDGMbePkWmTw952uM6Vs6.IPUh2H25oyhsbjJkSf3g9gbBa"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#10565 …}
    +apId: "keydelk@fosstodon.org"
    +apProfileId: "https://fosstodon.org/users/keydelk"
    +apPublicUrl: "https://fosstodon.org/@keydelk"
    +apFollowersUrl: "https://fosstodon.org/users/keydelk/followers"
    +apInboxUrl: "https://fosstodon.org/inbox"
    +apDomain: "fosstodon.org"
    +apPreferredUsername: "keydelk"
    +apDiscoverable: false
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1726414434 {#10509
      date: 2024-09-15 17:33:54.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1726414433 {#10510
      date: 2024-09-15 17:33:53.0 +02:00
    }
  }
  +asLink: true
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 2.79 ms
Input props
[
  "user" => App\Entity\User {#10391
    +avatar: Proxies\__CG__\App\Entity\Image {#10392 …}
    +cover: Proxies\__CG__\App\Entity\Image {#10393 …}
    +email: "voxel@infosec.exchange"
    +username: "@voxel@infosec.exchange"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      A [#privacy](https://infosec.exchange/tags/privacy) 🕶️ and [#cybersecurity](https://infosec.exchange/tags/cybersecurity) 🛡️ focused Voxel :p You can find here all kinds of posts related to these topics 👀 You will sometimes also find post about my opinions, thoughs or other tech related stuff. :D\n
      \n
      If you wanna get in contact with me, just ask, I'm open for meeting new people 🤍\n
      \n
      ⚠️ No enter for threads.net users! ⚠️
      """
    +lastActive: DateTime @1726427025 {#10388
      date: 2024-09-15 21:03:45.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#10394 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#10396 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#10398 …}
    +entries: Doctrine\ORM\PersistentCollection {#10400 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#10402 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#10404 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#10406 …}
    +posts: Doctrine\ORM\PersistentCollection {#10408 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#10410 …}
    +postComments: Doctrine\ORM\PersistentCollection {#10412 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#10414 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#10416 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#10418 …}
    +follows: Doctrine\ORM\PersistentCollection {#10420 …}
    +followers: Doctrine\ORM\PersistentCollection {#10422 …}
    +blocks: Doctrine\ORM\PersistentCollection {#10424 …}
    +blockers: Doctrine\ORM\PersistentCollection {#10426 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#10428 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#10430 …}
    +reports: Doctrine\ORM\PersistentCollection {#10432 …}
    +favourites: Doctrine\ORM\PersistentCollection {#10434 …}
    +violations: Doctrine\ORM\PersistentCollection {#10436 …}
    +notifications: Doctrine\ORM\PersistentCollection {#10438 …}
    +awards: Doctrine\ORM\PersistentCollection {#10440 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#10442 …}
    +categories: Doctrine\ORM\PersistentCollection {#10444 …}
    -id: 53000
    -password: "$2y$13$pd7Up6WjCEl8oqexMRyMpOiVLvCy/dNuZRfIrsmSYPg42bruvRe9W"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#10446 …}
    +apId: "voxel@infosec.exchange"
    +apProfileId: "https://infosec.exchange/users/voxel"
    +apPublicUrl: "https://infosec.exchange/@voxel"
    +apFollowersUrl: "https://infosec.exchange/users/voxel/followers"
    +apInboxUrl: "https://infosec.exchange/inbox"
    +apDomain: "infosec.exchange"
    +apPreferredUsername: "voxel"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1704403416 {#10389
      date: 2024-01-04 22:23:36.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1696709863 {#10390
      date: 2023-10-07 22:17:43.0 +02:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#11146
  +width: 65
  +height: 65
  +user: App\Entity\User {#10391
    +avatar: Proxies\__CG__\App\Entity\Image {#10392 …}
    +cover: Proxies\__CG__\App\Entity\Image {#10393 …}
    +email: "voxel@infosec.exchange"
    +username: "@voxel@infosec.exchange"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      A [#privacy](https://infosec.exchange/tags/privacy) 🕶️ and [#cybersecurity](https://infosec.exchange/tags/cybersecurity) 🛡️ focused Voxel :p You can find here all kinds of posts related to these topics 👀 You will sometimes also find post about my opinions, thoughs or other tech related stuff. :D\n
      \n
      If you wanna get in contact with me, just ask, I'm open for meeting new people 🤍\n
      \n
      ⚠️ No enter for threads.net users! ⚠️
      """
    +lastActive: DateTime @1726427025 {#10388
      date: 2024-09-15 21:03:45.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#10394 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#10396 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#10398 …}
    +entries: Doctrine\ORM\PersistentCollection {#10400 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#10402 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#10404 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#10406 …}
    +posts: Doctrine\ORM\PersistentCollection {#10408 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#10410 …}
    +postComments: Doctrine\ORM\PersistentCollection {#10412 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#10414 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#10416 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#10418 …}
    +follows: Doctrine\ORM\PersistentCollection {#10420 …}
    +followers: Doctrine\ORM\PersistentCollection {#10422 …}
    +blocks: Doctrine\ORM\PersistentCollection {#10424 …}
    +blockers: Doctrine\ORM\PersistentCollection {#10426 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#10428 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#10430 …}
    +reports: Doctrine\ORM\PersistentCollection {#10432 …}
    +favourites: Doctrine\ORM\PersistentCollection {#10434 …}
    +violations: Doctrine\ORM\PersistentCollection {#10436 …}
    +notifications: Doctrine\ORM\PersistentCollection {#10438 …}
    +awards: Doctrine\ORM\PersistentCollection {#10440 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#10442 …}
    +categories: Doctrine\ORM\PersistentCollection {#10444 …}
    -id: 53000
    -password: "$2y$13$pd7Up6WjCEl8oqexMRyMpOiVLvCy/dNuZRfIrsmSYPg42bruvRe9W"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#10446 …}
    +apId: "voxel@infosec.exchange"
    +apProfileId: "https://infosec.exchange/users/voxel"
    +apPublicUrl: "https://infosec.exchange/@voxel"
    +apFollowersUrl: "https://infosec.exchange/users/voxel/followers"
    +apInboxUrl: "https://infosec.exchange/inbox"
    +apDomain: "infosec.exchange"
    +apPreferredUsername: "voxel"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1704403416 {#10389
      date: 2024-01-04 22:23:36.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1696709863 {#10390
      date: 2023-10-07 22:17:43.0 +02:00
    }
  }
  +asLink: true
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.38 ms
Input props
[
  "user" => App\Entity\User {#10331
    +avatar: Proxies\__CG__\App\Entity\Image {#10332 …}
    +cover: Proxies\__CG__\App\Entity\Image {#10333 …}
    +email: "skullgiver@popplesburger.hilciferous.nl"
    +username: "@skullgiver@popplesburger.hilciferous.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      Giver of skulls\n
      \n
      ![Verified icon](https://popplesburger.hilciferous.nl/poc.png)
      """
    +lastActive: DateTime @1728761057 {#10328
      date: 2024-10-12 21:24:17.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#10334 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#10336 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#10338 …}
    +entries: Doctrine\ORM\PersistentCollection {#10340 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#10342 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#10344 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#10346 …}
    +posts: Doctrine\ORM\PersistentCollection {#10348 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#10350 …}
    +postComments: Doctrine\ORM\PersistentCollection {#10352 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#10354 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#10356 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#10358 …}
    +follows: Doctrine\ORM\PersistentCollection {#10360 …}
    +followers: Doctrine\ORM\PersistentCollection {#10362 …}
    +blocks: Doctrine\ORM\PersistentCollection {#10364 …}
    +blockers: Doctrine\ORM\PersistentCollection {#10366 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#10368 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#10370 …}
    +reports: Doctrine\ORM\PersistentCollection {#10372 …}
    +favourites: Doctrine\ORM\PersistentCollection {#10374 …}
    +violations: Doctrine\ORM\PersistentCollection {#10376 …}
    +notifications: Doctrine\ORM\PersistentCollection {#10378 …}
    +awards: Doctrine\ORM\PersistentCollection {#10380 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#10382 …}
    +categories: Doctrine\ORM\PersistentCollection {#10384 …}
    -id: 141
    -password: "$2y$13$WNx1Bxmow68.X6L50T9Ex.e5g9dz3jvgk4/OA1Q5m2NxPCnyI.Q0C"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#10386 …}
    +apId: "skullgiver@popplesburger.hilciferous.nl"
    +apProfileId: "https://popplesburger.hilciferous.nl/u/skullgiver"
    +apPublicUrl: "https://popplesburger.hilciferous.nl/u/skullgiver"
    +apFollowersUrl: null
    +apInboxUrl: "https://popplesburger.hilciferous.nl/inbox"
    +apDomain: "popplesburger.hilciferous.nl"
    +apPreferredUsername: "skullgiver"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728976595 {#10329
      date: 2024-10-15 09:16:35.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1686730951 {#10330
      date: 2023-06-14 10:22:31.0 +02:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#11209
  +width: 65
  +height: 65
  +user: App\Entity\User {#10331
    +avatar: Proxies\__CG__\App\Entity\Image {#10332 …}
    +cover: Proxies\__CG__\App\Entity\Image {#10333 …}
    +email: "skullgiver@popplesburger.hilciferous.nl"
    +username: "@skullgiver@popplesburger.hilciferous.nl"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      Giver of skulls\n
      \n
      ![Verified icon](https://popplesburger.hilciferous.nl/poc.png)
      """
    +lastActive: DateTime @1728761057 {#10328
      date: 2024-10-12 21:24:17.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#10334 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#10336 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#10338 …}
    +entries: Doctrine\ORM\PersistentCollection {#10340 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#10342 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#10344 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#10346 …}
    +posts: Doctrine\ORM\PersistentCollection {#10348 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#10350 …}
    +postComments: Doctrine\ORM\PersistentCollection {#10352 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#10354 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#10356 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#10358 …}
    +follows: Doctrine\ORM\PersistentCollection {#10360 …}
    +followers: Doctrine\ORM\PersistentCollection {#10362 …}
    +blocks: Doctrine\ORM\PersistentCollection {#10364 …}
    +blockers: Doctrine\ORM\PersistentCollection {#10366 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#10368 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#10370 …}
    +reports: Doctrine\ORM\PersistentCollection {#10372 …}
    +favourites: Doctrine\ORM\PersistentCollection {#10374 …}
    +violations: Doctrine\ORM\PersistentCollection {#10376 …}
    +notifications: Doctrine\ORM\PersistentCollection {#10378 …}
    +awards: Doctrine\ORM\PersistentCollection {#10380 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#10382 …}
    +categories: Doctrine\ORM\PersistentCollection {#10384 …}
    -id: 141
    -password: "$2y$13$WNx1Bxmow68.X6L50T9Ex.e5g9dz3jvgk4/OA1Q5m2NxPCnyI.Q0C"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#10386 …}
    +apId: "skullgiver@popplesburger.hilciferous.nl"
    +apProfileId: "https://popplesburger.hilciferous.nl/u/skullgiver"
    +apPublicUrl: "https://popplesburger.hilciferous.nl/u/skullgiver"
    +apFollowersUrl: null
    +apInboxUrl: "https://popplesburger.hilciferous.nl/inbox"
    +apDomain: "popplesburger.hilciferous.nl"
    +apPreferredUsername: "skullgiver"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728976595 {#10329
      date: 2024-10-15 09:16:35.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1686730951 {#10330
      date: 2023-06-14 10:22:31.0 +02:00
    }
  }
  +asLink: true
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.35 ms
Input props
[
  "user" => App\Entity\User {#10211
    +avatar: Proxies\__CG__\App\Entity\Image {#10212 …}
    +cover: Proxies\__CG__\App\Entity\Image {#10213 …}
    +email: "spiritedpause@fosstodon.org"
    +username: "@spiritedpause@fosstodon.org"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      ☦️💻⚽🏥📷📈💪🏄☕️🇺🇸🇪🇬\n
      \n
      Software Engineer by day, aspiring beet farmer by night.\n
      \n
      Things I like:   \n
      - [#P2P](https://fosstodon.org/tags/P2P)/#opensource  \n
      - [#History](https://fosstodon.org/tags/History) (esp Rome/Greece/Egypt)   \n
      - [#Transit](https://fosstodon.org/tags/Transit) oriented city design   \n
      - [#electricvehicles](https://fosstodon.org/tags/electricvehicles) / [#SolarPower](https://fosstodon.org/tags/SolarPower)   \n
      - [#Space](https://fosstodon.org/tags/Space) exploration   \n
      - [#VideoGames](https://fosstodon.org/tags/VideoGames) (especially [#GTA](https://fosstodon.org/tags/GTA))\n
      \n
      Things I've Built:   \n
      - Agora: Follow your favorite topics across multiple protocols =&gt; <https://agorasocial.app>   \n
      - Primus News: Actionable news, directly from the source =&gt; <https://primus.news>
      """
    +lastActive: DateTime @1719859170 {#10208
      date: 2024-07-01 20:39:30.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#10214 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#10216 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#10218 …}
    +entries: Doctrine\ORM\PersistentCollection {#10220 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#10222 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#10224 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#10226 …}
    +posts: Doctrine\ORM\PersistentCollection {#10228 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#10230 …}
    +postComments: Doctrine\ORM\PersistentCollection {#10232 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#10234 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#10236 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#10238 …}
    +follows: Doctrine\ORM\PersistentCollection {#10240 …}
    +followers: Doctrine\ORM\PersistentCollection {#10242 …}
    +blocks: Doctrine\ORM\PersistentCollection {#10244 …}
    +blockers: Doctrine\ORM\PersistentCollection {#10246 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#10248 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#10250 …}
    +reports: Doctrine\ORM\PersistentCollection {#10252 …}
    +favourites: Doctrine\ORM\PersistentCollection {#10254 …}
    +violations: Doctrine\ORM\PersistentCollection {#10256 …}
    +notifications: Doctrine\ORM\PersistentCollection {#10258 …}
    +awards: Doctrine\ORM\PersistentCollection {#10260 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#10262 …}
    +categories: Doctrine\ORM\PersistentCollection {#10264 …}
    -id: 83179
    -password: "$2y$13$VKpAx5QhOiz5gxPokzwjJ.4U8LhCYmfcwWZZRmfnedKvSGHAZo.SK"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#10266 …}
    +apId: "spiritedpause@fosstodon.org"
    +apProfileId: "https://fosstodon.org/users/spiritedpause"
    +apPublicUrl: "https://fosstodon.org/@spiritedpause"
    +apFollowersUrl: "https://fosstodon.org/users/spiritedpause/followers"
    +apInboxUrl: "https://fosstodon.org/inbox"
    +apDomain: "fosstodon.org"
    +apPreferredUsername: "spiritedpause"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: true
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702967865 {#10209
      date: 2023-12-19 07:37:45.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1702967864 {#10210
      date: 2023-12-19 07:37:44.0 +01:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#11266
  +width: 65
  +height: 65
  +user: App\Entity\User {#10211
    +avatar: Proxies\__CG__\App\Entity\Image {#10212 …}
    +cover: Proxies\__CG__\App\Entity\Image {#10213 …}
    +email: "spiritedpause@fosstodon.org"
    +username: "@spiritedpause@fosstodon.org"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      ☦️💻⚽🏥📷📈💪🏄☕️🇺🇸🇪🇬\n
      \n
      Software Engineer by day, aspiring beet farmer by night.\n
      \n
      Things I like:   \n
      - [#P2P](https://fosstodon.org/tags/P2P)/#opensource  \n
      - [#History](https://fosstodon.org/tags/History) (esp Rome/Greece/Egypt)   \n
      - [#Transit](https://fosstodon.org/tags/Transit) oriented city design   \n
      - [#electricvehicles](https://fosstodon.org/tags/electricvehicles) / [#SolarPower](https://fosstodon.org/tags/SolarPower)   \n
      - [#Space](https://fosstodon.org/tags/Space) exploration   \n
      - [#VideoGames](https://fosstodon.org/tags/VideoGames) (especially [#GTA](https://fosstodon.org/tags/GTA))\n
      \n
      Things I've Built:   \n
      - Agora: Follow your favorite topics across multiple protocols =&gt; <https://agorasocial.app>   \n
      - Primus News: Actionable news, directly from the source =&gt; <https://primus.news>
      """
    +lastActive: DateTime @1719859170 {#10208
      date: 2024-07-01 20:39:30.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#10214 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#10216 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#10218 …}
    +entries: Doctrine\ORM\PersistentCollection {#10220 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#10222 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#10224 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#10226 …}
    +posts: Doctrine\ORM\PersistentCollection {#10228 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#10230 …}
    +postComments: Doctrine\ORM\PersistentCollection {#10232 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#10234 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#10236 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#10238 …}
    +follows: Doctrine\ORM\PersistentCollection {#10240 …}
    +followers: Doctrine\ORM\PersistentCollection {#10242 …}
    +blocks: Doctrine\ORM\PersistentCollection {#10244 …}
    +blockers: Doctrine\ORM\PersistentCollection {#10246 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#10248 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#10250 …}
    +reports: Doctrine\ORM\PersistentCollection {#10252 …}
    +favourites: Doctrine\ORM\PersistentCollection {#10254 …}
    +violations: Doctrine\ORM\PersistentCollection {#10256 …}
    +notifications: Doctrine\ORM\PersistentCollection {#10258 …}
    +awards: Doctrine\ORM\PersistentCollection {#10260 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#10262 …}
    +categories: Doctrine\ORM\PersistentCollection {#10264 …}
    -id: 83179
    -password: "$2y$13$VKpAx5QhOiz5gxPokzwjJ.4U8LhCYmfcwWZZRmfnedKvSGHAZo.SK"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#10266 …}
    +apId: "spiritedpause@fosstodon.org"
    +apProfileId: "https://fosstodon.org/users/spiritedpause"
    +apPublicUrl: "https://fosstodon.org/@spiritedpause"
    +apFollowersUrl: "https://fosstodon.org/users/spiritedpause/followers"
    +apInboxUrl: "https://fosstodon.org/inbox"
    +apDomain: "fosstodon.org"
    +apPreferredUsername: "spiritedpause"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: true
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1702967865 {#10209
      date: 2023-12-19 07:37:45.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1702967864 {#10210
      date: 2023-12-19 07:37:44.0 +01:00
    }
  }
  +asLink: true
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.40 ms
Input props
[
  "user" => App\Entity\User {#9795
    +avatar: Proxies\__CG__\App\Entity\Image {#9796 …}
    +cover: Proxies\__CG__\App\Entity\Image {#9797 …}
    +email: "Rustmilian@lemmy.world"
    +username: "@Rustmilian@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      Dyslexic [Privacy](/c/privacy@lemmy.ml) &amp; [Foss](/c/foss@lemmy.world) advocate, and [Linux](/c/Linux@lemmy.ml) user.   \n
      ![](https://i.postimg.cc/BbbYLqbm/b7f.jpg)   \n
      Ace 🖤🩶🤍💜\n
      \n
      [~Anti~ ~Commercial-AI~ ~license~ ~(CC~ ~BY-NC-SA~ ~4.0)~](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.en)
      """
    +lastActive: DateTime @1729000978 {#9792
      date: 2024-10-15 16:02:58.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9798 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9800 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9802 …}
    +entries: Doctrine\ORM\PersistentCollection {#9804 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9806 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9808 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9810 …}
    +posts: Doctrine\ORM\PersistentCollection {#9812 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9814 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9816 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9818 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9820 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9822 …}
    +follows: Doctrine\ORM\PersistentCollection {#9824 …}
    +followers: Doctrine\ORM\PersistentCollection {#9826 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9828 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9830 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9832 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9834 …}
    +reports: Doctrine\ORM\PersistentCollection {#9836 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9838 …}
    +violations: Doctrine\ORM\PersistentCollection {#9840 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9842 …}
    +awards: Doctrine\ORM\PersistentCollection {#9844 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9846 …}
    +categories: Doctrine\ORM\PersistentCollection {#9848 …}
    -id: 49449
    -password: "$2y$13$4Jzy1Ci4G3kZwOVlOI2yNe0zT/RQdD2nPaBErp9ymyRaMLSjJEI8."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9850 …}
    +apId: "Rustmilian@lemmy.world"
    +apProfileId: "https://lemmy.world/u/Rustmilian"
    +apPublicUrl: "https://lemmy.world/u/Rustmilian"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "Rustmilian"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728438766 {#9793
      date: 2024-10-09 03:52:46.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1696458048 {#9794
      date: 2023-10-05 00:20:48.0 +02:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#11323
  +width: 65
  +height: 65
  +user: App\Entity\User {#9795
    +avatar: Proxies\__CG__\App\Entity\Image {#9796 …}
    +cover: Proxies\__CG__\App\Entity\Image {#9797 …}
    +email: "Rustmilian@lemmy.world"
    +username: "@Rustmilian@lemmy.world"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      Dyslexic [Privacy](/c/privacy@lemmy.ml) &amp; [Foss](/c/foss@lemmy.world) advocate, and [Linux](/c/Linux@lemmy.ml) user.   \n
      ![](https://i.postimg.cc/BbbYLqbm/b7f.jpg)   \n
      Ace 🖤🩶🤍💜\n
      \n
      [~Anti~ ~Commercial-AI~ ~license~ ~(CC~ ~BY-NC-SA~ ~4.0)~](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.en)
      """
    +lastActive: DateTime @1729000978 {#9792
      date: 2024-10-15 16:02:58.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9798 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9800 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9802 …}
    +entries: Doctrine\ORM\PersistentCollection {#9804 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9806 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9808 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9810 …}
    +posts: Doctrine\ORM\PersistentCollection {#9812 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9814 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9816 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9818 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9820 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9822 …}
    +follows: Doctrine\ORM\PersistentCollection {#9824 …}
    +followers: Doctrine\ORM\PersistentCollection {#9826 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9828 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9830 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9832 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9834 …}
    +reports: Doctrine\ORM\PersistentCollection {#9836 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9838 …}
    +violations: Doctrine\ORM\PersistentCollection {#9840 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9842 …}
    +awards: Doctrine\ORM\PersistentCollection {#9844 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9846 …}
    +categories: Doctrine\ORM\PersistentCollection {#9848 …}
    -id: 49449
    -password: "$2y$13$4Jzy1Ci4G3kZwOVlOI2yNe0zT/RQdD2nPaBErp9ymyRaMLSjJEI8."
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9850 …}
    +apId: "Rustmilian@lemmy.world"
    +apProfileId: "https://lemmy.world/u/Rustmilian"
    +apPublicUrl: "https://lemmy.world/u/Rustmilian"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.world/inbox"
    +apDomain: "lemmy.world"
    +apPreferredUsername: "Rustmilian"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728438766 {#9793
      date: 2024-10-09 03:52:46.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1696458048 {#9794
      date: 2023-10-05 00:20:48.0 +02:00
    }
  }
  +asLink: true
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.34 ms
Input props
[
  "user" => App\Entity\User {#10809
    +avatar: Proxies\__CG__\App\Entity\Image {#10810 …}
    +cover: Proxies\__CG__\App\Entity\Image {#10811 …}
    +email: "ajayiyer@mastodon.social"
    +username: "@ajayiyer@mastodon.social"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      Postdoctoral researcher at University College Dublin\n
      \n
      **Research topics:** gut microbiota | invasive plants | sustainable proteins | Algal proteases
      """
    +lastActive: DateTime @1728253326 {#10806
      date: 2024-10-07 00:22:06.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#10812 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#10814 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#10816 …}
    +entries: Doctrine\ORM\PersistentCollection {#10818 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#10820 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#10822 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#10824 …}
    +posts: Doctrine\ORM\PersistentCollection {#10826 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#10828 …}
    +postComments: Doctrine\ORM\PersistentCollection {#10830 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#10832 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#10834 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#10836 …}
    +follows: Doctrine\ORM\PersistentCollection {#10838 …}
    +followers: Doctrine\ORM\PersistentCollection {#10840 …}
    +blocks: Doctrine\ORM\PersistentCollection {#10842 …}
    +blockers: Doctrine\ORM\PersistentCollection {#10844 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#10846 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#10848 …}
    +reports: Doctrine\ORM\PersistentCollection {#10850 …}
    +favourites: Doctrine\ORM\PersistentCollection {#10852 …}
    +violations: Doctrine\ORM\PersistentCollection {#10854 …}
    +notifications: Doctrine\ORM\PersistentCollection {#10856 …}
    +awards: Doctrine\ORM\PersistentCollection {#10858 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#10860 …}
    +categories: Doctrine\ORM\PersistentCollection {#10862 …}
    -id: 93298
    -password: "$2y$13$mT6NodMyt90zWixSuYnRUuN/fM4QfYxMCG7krCf40toSSlKLA4WZi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#10864 …}
    +apId: "ajayiyer@mastodon.social"
    +apProfileId: "https://mastodon.social/users/ajayiyer"
    +apPublicUrl: "https://mastodon.social/@ajayiyer"
    +apFollowersUrl: "https://mastodon.social/users/ajayiyer/followers"
    +apInboxUrl: "https://mastodon.social/inbox"
    +apDomain: "mastodon.social"
    +apPreferredUsername: "ajayiyer"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728253325 {#10807
      date: 2024-10-07 00:22:05.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1728253324 {#10808
      date: 2024-10-07 00:22:04.0 +02:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#11380
  +width: 65
  +height: 65
  +user: App\Entity\User {#10809
    +avatar: Proxies\__CG__\App\Entity\Image {#10810 …}
    +cover: Proxies\__CG__\App\Entity\Image {#10811 …}
    +email: "ajayiyer@mastodon.social"
    +username: "@ajayiyer@mastodon.social"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      Postdoctoral researcher at University College Dublin\n
      \n
      **Research topics:** gut microbiota | invasive plants | sustainable proteins | Algal proteases
      """
    +lastActive: DateTime @1728253326 {#10806
      date: 2024-10-07 00:22:06.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#10812 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#10814 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#10816 …}
    +entries: Doctrine\ORM\PersistentCollection {#10818 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#10820 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#10822 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#10824 …}
    +posts: Doctrine\ORM\PersistentCollection {#10826 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#10828 …}
    +postComments: Doctrine\ORM\PersistentCollection {#10830 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#10832 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#10834 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#10836 …}
    +follows: Doctrine\ORM\PersistentCollection {#10838 …}
    +followers: Doctrine\ORM\PersistentCollection {#10840 …}
    +blocks: Doctrine\ORM\PersistentCollection {#10842 …}
    +blockers: Doctrine\ORM\PersistentCollection {#10844 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#10846 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#10848 …}
    +reports: Doctrine\ORM\PersistentCollection {#10850 …}
    +favourites: Doctrine\ORM\PersistentCollection {#10852 …}
    +violations: Doctrine\ORM\PersistentCollection {#10854 …}
    +notifications: Doctrine\ORM\PersistentCollection {#10856 …}
    +awards: Doctrine\ORM\PersistentCollection {#10858 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#10860 …}
    +categories: Doctrine\ORM\PersistentCollection {#10862 …}
    -id: 93298
    -password: "$2y$13$mT6NodMyt90zWixSuYnRUuN/fM4QfYxMCG7krCf40toSSlKLA4WZi"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#10864 …}
    +apId: "ajayiyer@mastodon.social"
    +apProfileId: "https://mastodon.social/users/ajayiyer"
    +apPublicUrl: "https://mastodon.social/@ajayiyer"
    +apFollowersUrl: "https://mastodon.social/users/ajayiyer/followers"
    +apInboxUrl: "https://mastodon.social/inbox"
    +apDomain: "mastodon.social"
    +apPreferredUsername: "ajayiyer"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728253325 {#10807
      date: 2024-10-07 00:22:05.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1728253324 {#10808
      date: 2024-10-07 00:22:04.0 +02:00
    }
  }
  +asLink: true
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.39 ms
Input props
[
  "user" => App\Entity\User {#9617
    +avatar: Proxies\__CG__\App\Entity\Image {#9618 …}
    +cover: null
    +email: "morrowind@lemmy.ml"
    +username: "@morrowind@lemmy.ml"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      If you’re here, there’s still hope for the internet\n
      \n
      Don’t let it fall
      """
    +lastActive: DateTime @1729067335 {#9614
      date: 2024-10-16 10:28:55.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9619 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9621 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9623 …}
    +entries: Doctrine\ORM\PersistentCollection {#9625 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9627 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9629 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9631 …}
    +posts: Doctrine\ORM\PersistentCollection {#9633 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9635 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9637 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9639 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9641 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9643 …}
    +follows: Doctrine\ORM\PersistentCollection {#9645 …}
    +followers: Doctrine\ORM\PersistentCollection {#9647 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9649 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9651 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9653 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9655 …}
    +reports: Doctrine\ORM\PersistentCollection {#9657 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9659 …}
    +violations: Doctrine\ORM\PersistentCollection {#9661 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9663 …}
    +awards: Doctrine\ORM\PersistentCollection {#9665 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9667 …}
    +categories: Doctrine\ORM\PersistentCollection {#9669 …}
    -id: 10079
    -password: "$2y$13$.3aRC68M5ht.sH.0tcZGBugJVGvv8bC5BWMnX4UrZpRpgHPvfnFCS"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9671 …}
    +apId: "morrowind@lemmy.ml"
    +apProfileId: "https://lemmy.ml/u/morrowind"
    +apPublicUrl: "https://lemmy.ml/u/morrowind"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "morrowind"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728542261 {#9615
      date: 2024-10-10 08:37:41.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687576087 {#9616
      date: 2023-06-24 05:08:07.0 +02:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#11437
  +width: 65
  +height: 65
  +user: App\Entity\User {#9617
    +avatar: Proxies\__CG__\App\Entity\Image {#9618 …}
    +cover: null
    +email: "morrowind@lemmy.ml"
    +username: "@morrowind@lemmy.ml"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      If you’re here, there’s still hope for the internet\n
      \n
      Don’t let it fall
      """
    +lastActive: DateTime @1729067335 {#9614
      date: 2024-10-16 10:28:55.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: true
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: false
    +notifyOnNewEntryCommentReply: false
    +notifyOnNewPost: false
    +notifyOnNewPostReply: false
    +notifyOnNewPostCommentReply: false
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9619 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9621 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9623 …}
    +entries: Doctrine\ORM\PersistentCollection {#9625 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9627 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9629 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9631 …}
    +posts: Doctrine\ORM\PersistentCollection {#9633 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9635 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9637 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9639 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9641 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9643 …}
    +follows: Doctrine\ORM\PersistentCollection {#9645 …}
    +followers: Doctrine\ORM\PersistentCollection {#9647 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9649 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9651 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9653 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9655 …}
    +reports: Doctrine\ORM\PersistentCollection {#9657 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9659 …}
    +violations: Doctrine\ORM\PersistentCollection {#9661 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9663 …}
    +awards: Doctrine\ORM\PersistentCollection {#9665 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9667 …}
    +categories: Doctrine\ORM\PersistentCollection {#9669 …}
    -id: 10079
    -password: "$2y$13$.3aRC68M5ht.sH.0tcZGBugJVGvv8bC5BWMnX4UrZpRpgHPvfnFCS"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9671 …}
    +apId: "morrowind@lemmy.ml"
    +apProfileId: "https://lemmy.ml/u/morrowind"
    +apPublicUrl: "https://lemmy.ml/u/morrowind"
    +apFollowersUrl: null
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "morrowind"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1728542261 {#9615
      date: 2024-10-10 08:37:41.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687576087 {#9616
      date: 2023-06-24 05:08:07.0 +02:00
    }
  }
  +asLink: true
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.42 ms
Input props
[
  "user" => App\Entity\User {#9276
    +avatar: Proxies\__CG__\App\Entity\Image {#9273 …}
    +cover: null
    +email: "learnbyexample@programming.dev"
    +username: "@learnbyexample@programming.dev"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      Interests: Regular Expressions, Linux CLI one-liners, Scripting Languages and Vim\n
      \n
      GitHub: [github.com/learnbyexample](https://github.com/learnbyexample)
      """
    +lastActive: DateTime @1722615549 {#9277
      date: 2024-08-02 18:19:09.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9274 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9272 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9270 …}
    +entries: Doctrine\ORM\PersistentCollection {#9268 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9266 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9264 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9262 …}
    +posts: Doctrine\ORM\PersistentCollection {#9260 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9258 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9256 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9254 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9252 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9250 …}
    +follows: Doctrine\ORM\PersistentCollection {#9248 …}
    +followers: Doctrine\ORM\PersistentCollection {#9246 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9244 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9242 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9240 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9238 …}
    +reports: Doctrine\ORM\PersistentCollection {#9236 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9234 …}
    +violations: Doctrine\ORM\PersistentCollection {#9232 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9230 …}
    +awards: Doctrine\ORM\PersistentCollection {#9228 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9226 …}
    +categories: Doctrine\ORM\PersistentCollection {#9224 …}
    -id: 70667
    -password: "$2y$13$EFZjDVjmDtDatU64GaeF0ug3JHYN4QRqxGK/8n0dK86KON7nG/qfm"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9222 …}
    +apId: "learnbyexample@programming.dev"
    +apProfileId: "https://programming.dev/u/learnbyexample"
    +apPublicUrl: "https://programming.dev/u/learnbyexample"
    +apFollowersUrl: null
    +apInboxUrl: "https://programming.dev/inbox"
    +apDomain: "programming.dev"
    +apPreferredUsername: "learnbyexample"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1709834846 {#9278
      date: 2024-03-07 19:07:26.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1699023828 {#9275
      date: 2023-11-03 16:03:48.0 +01:00
    }
  }
  "width" => 65
  "height" => 65
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#11494
  +width: 65
  +height: 65
  +user: App\Entity\User {#9276
    +avatar: Proxies\__CG__\App\Entity\Image {#9273 …}
    +cover: null
    +email: "learnbyexample@programming.dev"
    +username: "@learnbyexample@programming.dev"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: """
      Interests: Regular Expressions, Linux CLI one-liners, Scripting Languages and Vim\n
      \n
      GitHub: [github.com/learnbyexample](https://github.com/learnbyexample)
      """
    +lastActive: DateTime @1722615549 {#9277
      date: 2024-08-02 18:19:09.0 +02:00
    }
    +markedForDeletionAt: null
    +fields: null
    +oauthGithubId: null
    +oauthGoogleId: null
    +oauthFacebookId: null
    +oauthKeycloakId: null
    +hideAdult: true
    +showSubscribedUsers: true
    +showSubscribedMagazines: true
    +showSubscribedDomains: true
    +preferredLanguages: []
    +featuredMagazines: null
    +showProfileSubscriptions: false
    +showProfileFollowings: true
    +markNewComments: false
    +notifyOnNewEntry: false
    +notifyOnNewEntryReply: true
    +notifyOnNewEntryCommentReply: true
    +notifyOnNewPost: false
    +notifyOnNewPostReply: true
    +notifyOnNewPostCommentReply: true
    +addMentionsEntries: false
    +addMentionsPosts: true
    +isBanned: false
    +isVerified: false
    +isDeleted: false
    +isBot: false
    +spamProtection: true
    +customCss: null
    +ignoreMagazinesCustomCss: false
    +moderatorTokens: Doctrine\ORM\PersistentCollection {#9274 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#9272 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#9270 …}
    +entries: Doctrine\ORM\PersistentCollection {#9268 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#9266 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#9264 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#9262 …}
    +posts: Doctrine\ORM\PersistentCollection {#9260 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#9258 …}
    +postComments: Doctrine\ORM\PersistentCollection {#9256 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#9254 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#9252 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#9250 …}
    +follows: Doctrine\ORM\PersistentCollection {#9248 …}
    +followers: Doctrine\ORM\PersistentCollection {#9246 …}
    +blocks: Doctrine\ORM\PersistentCollection {#9244 …}
    +blockers: Doctrine\ORM\PersistentCollection {#9242 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#9240 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#9238 …}
    +reports: Doctrine\ORM\PersistentCollection {#9236 …}
    +favourites: Doctrine\ORM\PersistentCollection {#9234 …}
    +violations: Doctrine\ORM\PersistentCollection {#9232 …}
    +notifications: Doctrine\ORM\PersistentCollection {#9230 …}
    +awards: Doctrine\ORM\PersistentCollection {#9228 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#9226 …}
    +categories: Doctrine\ORM\PersistentCollection {#9224 …}
    -id: 70667
    -password: "$2y$13$EFZjDVjmDtDatU64GaeF0ug3JHYN4QRqxGK/8n0dK86KON7nG/qfm"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#9222 …}
    +apId: "learnbyexample@programming.dev"
    +apProfileId: "https://programming.dev/u/learnbyexample"
    +apPublicUrl: "https://programming.dev/u/learnbyexample"
    +apFollowersUrl: null
    +apInboxUrl: "https://programming.dev/inbox"
    +apDomain: "programming.dev"
    +apPreferredUsername: "learnbyexample"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1709834846 {#9278
      date: 2024-03-07 19:07:26.0 +01:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1699023828 {#9275
      date: 2023-11-03 16:03:48.0 +01:00
    }
  }
  +asLink: true
}
related_categories App\Twig\Components\RelatedCategoriesComponent 12.0 MiB 4.09 ms
Input props
[
  "magazine" => "linux@lemmy.ml"
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedCategoriesComponent {#11556
  +limit: 4
  +tag: null
  +magazine: "linux@lemmy.ml"
  +type: "related"
  +title: "related_categories"
  +refreshedRandom: false
  -repository: App\Repository\CategoryRepository {#11557 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
}
related_posts App\Twig\Components\RelatedPostsComponent 12.0 MiB 1.95 ms
Input props
[
  "magazine" => "linux@lemmy.ml"
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedPostsComponent {#11633
  +limit: 4
  +tag: null
  +magazine: "linux@lemmy.ml"
  +type: "magazine"
  +post: null
  +title: "related_posts"
  +refreshedRandom: false
  -repository: App\Repository\PostRepository {#11634 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -mentionManager: App\Service\MentionManager {#390 …}
}
related_entries App\Twig\Components\RelatedEntriesComponent 12.0 MiB 2.51 ms
Input props
[
  "magazine" => "linux@lemmy.ml"
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedEntriesComponent {#11706
  +limit: 4
  +tag: null
  +magazine: "linux@lemmy.ml"
  +type: "magazine"
  +entry: null
  +title: "related_entries"
  +refreshedRandom: false
  -repository: App\Repository\EntryRepository {#271 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -mentionManager: App\Service\MentionManager {#390 …}
}
support_us_block App\Twig\Components\SupportUsBlock 12.0 MiB 0.25 ms
Input props
[]
Attributes
[]
Component
App\Twig\Components\SupportUsBlock {#11775
  +subject: ? App\Entity\Contracts\VotableInterface
  +url: ? string
  -twig: Twig\Environment {#1252 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -partnerBlockRepository: App\Repository\PartnerBlockRepository {#11776 …}
}
featured_magazines App\Twig\Components\FeaturedMagazinesComponent 12.0 MiB 0.71 ms
Input props
[
  "magazine" => App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1385
    +entryCommentCount: 28286
    +postCount: 6
    +postCommentCount: 213
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729134767 {#276
      date: 2024-10-17 05:12:47.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729135037 {#270
      date: 2024-10-17 03:17:17.284546 UTC (+00:00)
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\FeaturedMagazinesComponent {#11864
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1385
    +entryCommentCount: 28286
    +postCount: 6
    +postCommentCount: 213
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729134767 {#276
      date: 2024-10-17 05:12:47.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729135037 {#270
      date: 2024-10-17 03:17:17.284546 UTC (+00:00)
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  -twig: Twig\Environment {#1252 …}
  -repository: App\Repository\MagazineRepository {#334 …}
}