Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 827174 Details for
Bug 1033018
syntax error in /etc/profile.d/perl-homedir.csh (perl-local-lib/perl-homedir)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix
local-lib-1.008010-Fix-setting-undefined-variable-in-CSH.patch (text/plain), 1.52 KB, created by
Petr Pisar
on 2013-11-21 13:05:44 UTC
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2013-11-21 13:05:44 UTC
Size:
1.52 KB
patch
obsolete
>From 53297b1441539efdc44fc9c8f4f19fb6ba8290c9 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> >Date: Thu, 21 Nov 2013 12:03:32 +0100 >Subject: [PATCH] Fix setting undefined variable in CSH >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > ><https://rt.cpan.org/Public/Bug/Display.html?id=85667> > >Signed-off-by: Petr PÃsaÅ <ppisar@redhat.com> >--- > lib/local/lib.pm | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) > >diff --git a/lib/local/lib.pm b/lib/local/lib.pm >index 289e13b..d4f8e2a 100644 >--- a/lib/local/lib.pm >+++ b/lib/local/lib.pm >@@ -343,7 +343,24 @@ sub build_bourne_env_declaration { > sub build_csh_env_declaration { > my $class = shift; > my($name, $value) = @_; >- return defined($value) ? qq{setenv ${name} "${value}";\n} : qq{unsetenv ${name};\n}; >+ if (defined($value)) { >+ if ($value =~ /(.*)(\A|\Q$Config{path_sep}\E)(\$)(.+?)(\z|\Q$Config{path_sep}\E)(.*)/) { >+ # If a variable reference exists in the value, we have to delimit it and >+ # dereference it only if it is defined. >+ return >+ qq{test 1 == \$\{?$4\} && } . >+ qq{setenv ${name} "${1}${2}${3}\{${4}\}${5}${6}"} . >+ qq{ || } . >+ qq{setenv ${name} "${1}} . >+ (($2 ne '' and $5 ne '') ? qq{${2}} : '') . >+ qq{${6}"} . >+ qq{;\n}; >+ } else { >+ return qq{setenv ${name} "${value}";\n}; >+ } >+ } else { >+ return qq{unsetenv ${name};\n}; >+ } > } > > sub build_win32_env_declaration { >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1033018
: 827174