CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 21:58:15 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/ksh93/ksh.git
etag: W/"344c385921446b0ec278101d2bdba94b"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=Ui8AojNnqbosapTVzO5heBLwKgKrIJdiQNrzLYtG3rKgAdnBfvaqP9k%2FX6mPDvpoXlnY7VmKaw82%2FFFijVFkBrlwIJsnARSr%2Bol8MOWX%2FqXyqfl6GJ9ZGnMtJYKNhJ3bIhAKiyVevCSRa6j69cLIR1do3SUnKcNb6fvOG7sC6r82QI%2BhqUcfIwQ6EK0vUCDkRrro5CBEv6a7AL0JVy3TAJqJP8HCQ4yFU0bui4clhoHjsr0hqk6U4ejWlvitjD56mF%2FAH2eyRgFLyMeqNg9m0A%3D%3D--VB5AGjFvn99qUQrZ--bN5w%2FUKgRUM3c1yy9rd9Vw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1181608840.1753480694; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 21:58:14 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 21:58:14 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D3EE:32DF28:102F98:1688FD:6883FDF6
Fix I/O redirection in -c script (Solaris patch 280-23332860) · ksh93/ksh@17ebfbf · GitHub
Copy file name to clipboardExpand all lines: src/cmd/ksh93/bltins/trap.c
Copy file name to clipboardExpand all lines: src/cmd/ksh93/include/defs.h
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit 17ebfbf
committed
Fix I/O redirection in -c script (Solaris patch 280-23332860)
This change is pulled from here:
https://github.com/oracle/solaris-userland/blob/master/components/ksh93/patches/280-23332860.patch
Info and reproducers:
att#36
In a -c script (like ksh -c 'commands'), the last command
misredirects standard output if an EXIT or ERR trap is set.
This appears to be a side effect of the optimisation that
runs the last command without forking.
This applies a patch by George Lijo that flags these specific
cases and disables the optimisation.
src/cmd/ksh93/include/defs.h,
src/cmd/ksh93/bltins/trap.c,
src/cmd/ksh93/sh/init.c,
src/cmd/ksh93/sh/main.c,
src/cmd/ksh93/sh/xec.c:
- Apply patch as above.
src/cmd/ksh93/tests/io.sh:
- Add the reproducers from the bug report as regression tests.1 parent 7c47ab5 commit 17ebfbfCopy full SHA for 17ebfbf
Expand file treeCollapse file tree
6 files changed
+78
-1
lines changedsrc/cmd/ksh93/bltins/trap.c
Copy file name to clipboardExpand all lines: src/cmd/ksh93/bltins/trap.c+12Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
130 | 138 |
| |
131 | 139 |
| |
132 | 140 |
| |
| |||
144 | 152 |
| |
145 | 153 |
| |
146 | 154 |
| |
| 155 | + | |
| 156 | + | |
147 | 157 |
| |
148 | 158 |
| |
149 | 159 |
| |
| |||
156 | 166 |
| |
157 | 167 |
| |
158 | 168 |
| |
| 169 | + | |
| 170 | + | |
159 | 171 |
| |
160 | 172 |
| |
161 | 173 |
| |
|
src/cmd/ksh93/include/defs.h
Copy file name to clipboardExpand all lines: src/cmd/ksh93/include/defs.h+4-1Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
272 | 272 |
| |
273 | 273 |
| |
274 | 274 |
| |
275 |
| - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
276 | 279 |
| |
277 | 280 |
| |
278 | 281 |
| |
|
+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1479 | 1479 |
| |
1480 | 1480 |
| |
1481 | 1481 |
| |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
1482 | 1485 |
| |
1483 | 1486 |
| |
1484 | 1487 |
| |
| |||
1580 | 1583 |
| |
1581 | 1584 |
| |
1582 | 1585 |
| |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1583 | 1589 |
| |
1584 | 1590 |
| |
1585 | 1591 |
| |
|
+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
455 | 455 |
| |
456 | 456 |
| |
457 | 457 |
| |
| 458 | + | |
| 459 | + | |
| 460 | + | |
458 | 461 |
| |
459 | 462 |
| |
460 | 463 |
| |
|
+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
987 | 987 |
| |
988 | 988 |
| |
989 | 989 |
| |
| 990 | + | |
| 991 | + | |
990 | 992 |
| |
991 | 993 |
| |
992 | 994 |
| |
| |||
3119 | 3121 |
| |
3120 | 3122 |
| |
3121 | 3123 |
| |
| 3124 | + | |
| 3125 | + | |
3122 | 3126 |
| |
3123 | 3127 |
| |
3124 | 3128 |
| |
| |||
3166 | 3170 |
| |
3167 | 3171 |
| |
3168 | 3172 |
| |
| 3173 | + | |
3169 | 3174 |
| |
3170 | 3175 |
| |
3171 | 3176 |
| |
|
+48Lines changed: 48 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
649 | 649 |
| |
650 | 650 |
| |
651 | 651 |
| |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
652 | 700 |
| |
653 | 701 |
|
You can’t perform that action at this time.
0 commit comments