<p></p>
<blockquote>
<p dir="auto">Yep.. I was just saying it would be a nice feature to have in the same program without using external ones.</p>
</blockquote>
<p dir="auto">I agree with you if more than one program, pstree, pidof, grep and/or sed are needed.<br>
However, I think just one, pgrep (or pidof) is acceptable.<br>
If strace introduces an option implementing the feature requested here, the user must remember the option to enable the feature.<br>
<code>[tab]</code> key with a modern shell may help us but remembering the command fragment, <code>-p "$(...)"</code> is not hard for me.</p>
<p dir="auto">I was directly taught this fragment by <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/ldv-alt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ldv-alt">@ldv-alt</a>, the maintainer of strace!<br>
<a href="https://lists.strace.io/pipermail/strace-devel/2018-March/007950.html" rel="nofollow">https://lists.strace.io/pipermail/strace-devel/2018-March/007950.html</a><br>
<a href="https://lists.strace.io/pipermail/strace-devel/2018-March/007951.html" rel="nofollow">https://lists.strace.io/pipermail/strace-devel/2018-March/007951.html</a></p>
<p dir="auto">The lesson was not free. I had to submit a patch to procps-ng as fee.<br>
<a href="https://gitlab.com/procps-ng/procps/-/merge_requests/58" rel="nofollow">https://gitlab.com/procps-ng/procps/-/merge_requests/58</a></p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/strace/strace/issues/193#issuecomment-977648655">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR3SFUBKDHKP6Y65623UNSPSXANCNFSM5DM7G7EA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AOVBTR2E7A4EXCZUIHTK7ATUNSPSXA5CNFSM5DM7G7EKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHJC3YDY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/issues/193#issuecomment-977648655",
"url": "https://github.com/strace/strace/issues/193#issuecomment-977648655",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>