Operating System - HP-UX
1753899 Members
7508 Online
108809 Solutions
New Discussion

Re: .profile error while login into HP-UX

 
Vishal_1980
Regular Advisor

.profile error while login into the HP box

Dear expert,

 

I am getting the below error while loggin into the HP box.Below is the error.

 

Error: .profile[3]: Syntax error: `"' is not matched.

 

 

Please suggest me on this.

 

Thanks & regards,

Vishal

 

P.S. This thread has been moved from  HP-UX>System Administration o HP-UX > languages. -HP Forum Moderator

4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: .profile error while login into the HP box

It means that you have a single-quote or double-quote somewhere in the .profile file that is missing.  Any time you use quotes there have to be opening and closing quotes.

 

Search through your .profile line by line and make sure that the quotes match.

Dennis Handly
Acclaimed Contributor

Re: .profile error while login into HP-UX

>Error: .profile[3]: Syntax error: `"' is not matched.

 

The string probably starts on line 3.

Vishal_1980
Regular Advisor

Re: .profile error while login into HP-UX

Hello Dennis sir,

 

Below is the output of the .profile file: Request you to please suggest.

 

STSIZE=1024
HISTFILE=$HOME/.sh_history
PS1=[`logname`@`hostname` "${PWD}]#.
export HISTSIZE HISTFILE PS1# @(#)B.11.31_LR

# Default (example of) super-user's .profile file


# Do not put "." in PATH; it is a potential security breach.
# Do not put "/usr/local/bin" in PATH; it is a potential security breach.
# Example assumes /home/root exists.
        set +u

        PATH=/usr/sbin:$PATH:/sbin:/home/root


# Be sure that VUE does not invoke tty commands

   if [ ! "$VUE" ]; then

   # Set up the terminal:
        if [ "$TERM" = "" ]
        then
                eval ` tset -s -Q -m ':?hp' `
        else
                eval ` tset -s -Q `
        fi
        stty erase "^H" kill "^U" intr "^C" eof "^D"
        stty hupcl ixon ixoff
        tabs

        echo
        echo "Value of TERM has been set to \"$TERM\"."
        export TERM

        EDITOR=vi
        export EDITOR

   fi          # if !VUE


# Set up shell environment:

        set -u                                  # error if undefined variable.
        trap "echo 'logout root'" 0             # what to do on exit.


# Set up shell variables:

        MAIL=/var/mail/root
        # don't export, so only login shell checks.

        echo "WARNING:  YOU ARE SUPERUSER !!\n"

 

Thanks & have a great day ahead.

 

With regards,

Vishal

Dennis Handly
Acclaimed Contributor

Re: .profile error while login into HP-UX

>Below is the output of the .profile file:
>PS1=[`logname`@`hostname` "${PWD}]#.

 

This is missing a trailing double quote on the end.