profile_d
Ken Brown
kbrown@cornell.edu
Tue Dec 6 17:57:00 GMT 2016
On 12/6/2016 9:49 AM, Charlie Perkins wrote:
> Hello anyone,
>
> Could someone tell me what profile_d does?
>
> There doesn't seem to be a man page, info, or any way I can find out!
It's defined in /etc/profile, shortly before the call to 'profile_d sh'.
The latter runs all the *.sh scripts in /etc/profile.d, with some
fiddling to get locales right.
> I'm getting the following errors from profile_d when /etc/profile
> invokes 'profile_d sh':
>
>> -bash: [: too many arguments
>> -bash: [: =: unary operator expected
>> -bash: [: =: unary operator expected
>> -bash: [: =: unary operator expected
>> -bash: [: =: unary operator expected
>> -bash: [: too many arguments
>> -bash: [: =: unary operator expected
>> -bash: [: =: unary operator expected
>> -bash: [: =: unary operator expected
>> -bash: [: =: unary operator expected
>> -bash: [: =: unary operator expected
I'm guessing that these errors are generated by the line
if [ "${_LC_SAVE_}" = "null" ]; then
in the definition of profile_d. Is LC_ALL defined in your environment?
Does it have spaces in it?
Ken
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list