tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: diff(1) command options



On Thu, 1 Mar 2018, Simon Burge wrote:
Paul Goyette wrote:
In my case, I have a shell alias for
 	alias diff "diff -u"
'cuz most of the time I want a -u output. But once in a blue moon (or perhaps
once in a blue+super moon) I want a -y (side-by-side) output; it's a real pain
to have to bypass the alias by specifying a complete path to /usr/bin/diff
Not really addressing your original question, but is using \diff an
option for those times you want to use -y? Most shells allow you to put
a \ in front of an alias to bypass the alias. At least it means you
don't have to remember where diff lives and resort using the full path.
yeah, a leading backslash is not a problem - great idea. Thanks!
+------------------+--------------------------+----------------------------+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+


Home | Main Index | Thread Index | Old Index

AltStyle によって変換されたページ (->オリジナル) /