| Anonymous | Login | 2026-04-05 18:13 CEST |
| Main | My View | View Issues |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0004825 | [pkg_get] regular use | minor | always | 2011-09-15 17:40 | 2011-09-20 13:47 | |||||||
| Reporter | bryanwgraham | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | reopened | |||||||||
| Status | feedback | |||||||||||
| Summary | 0004825: pkg-get can mess up shells on solaris express | |||||||||||
| Description |
While I realize that OpenCSW probably doesn't explicitly support Solaris Express, this problem will need to be fixed eventually. When pkg-get is run on Solaris Express, if any of the 'print "whatever" > /dev/fd/2' statements are processed, the shell will have difficulties when it returns. Specifically, backspace will print "^H" instead of actually backspacing, and usually if something visual is run after (vim for instance) the screen with crop oddly. The easiest way to test this is to run "pkg-get -i blah" (something that it won't find), then type something and try to backspace it. There is a simple fix, because the print statement support a -u option that does exactly what "> /dev/fd/2" does without causing the problem. Thus, this line gsed -i.bak -e 's/print\(.*\)>\/dev\/fd\/2/print -u 2\1/g' /opt/csw/bin/pkg-get will fix the problem and create a backup pkg-get.bak file in the process. The following line will do it without creating a backup. gsed -ie 's/print\(.*\)>\/dev\/fd\/2/print -u 2\1/g' /opt/csw/bin/pkg-get For informational purposes: SunOS mirror-x86 5.11 snv_151a i86pc i386 i86pc Solaris GNU bash, version 4.0.28(1)-release (i386-pc-solaris2.11) |
|||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
| Copyright © 2000 - 2008 Mantis Group |