patch or gpatch on Solairs?

The patch command on Solaris seems is compatible with diff format patch:
$patch -p0 < a.patch
  Looks like a unified context diff.
File to patch:

The command is block and need you input patch file. So, I have to use gpatch, and gpatch work fine.

I google it and found, I am not the first one encounter this problem. Patching PHP on Solaris hosts (all patch utilities are not created equal!)

Could anyone know if I can use Solaris patch by add some options?
 

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s