> Both username hehe and #hehe don't exist 
> 
> [freax@freax freax]$ su hehe
> su: user hehe does not exist
> [freax@freax freax]$ su #hehe
> Password: 
> su: incorrect password
> [freax@freax freax]$ 

Thanks for the report.  But that is not a bug.  The behavior you
report has nothing to do with su and everything to do with the command
line shell.  The '#' is normally a comment character with most command
line shells.

Therefore the su command is not seeing the string '"su" "#hehe"' it is
seeing only the "su" and the rest of the line is commented out.

Try using "echo" to verify the behavior.

  [bob@torment bob]$ echo su hehe
  su hehe
  [bob@torment bob]$ echo su #hehe
  su

If you really want to pass a command a string which contains shells
metacharacters then you need to quote the string.

  [bob@torment bob]$ su '#hehe'
  su: user #hehe does not exist

Bob

_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to