Changeset 85ef7049
- Timestamp:
- 02/26/2003 12:43:40 AM (22 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gimp3, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v1_0, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- d0721ff
- Parents:
- c773e7e
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/which.xml
rc773e7e r85ef7049 6 6 is probably one of the most contentious issues we have on the mailing 7 7 lists. It has resulted in at least one flame war in the recent past. 8 To hopefully put an end to this once and for all, we here present t he9 variousoptions for equipping your system with "which".</para>8 To hopefully put an end to this once and for all, we here present two of 9 the options for equipping your system with "which".</para> 10 10 11 <para>The first option is simply to use a bash alias:</para> 12 <screen>alias which='type -p'</screen> 13 <para>This command can be put in your 14 <filename>~/.bash_profile</filename> or <filename>~/.bashrc</filename> 15 file in order to be set up each time you log in (see man bash for more 16 information on the bash login files). This will not always work 17 however, for example it will fail when a program needs to use "which" 18 but 19 doesn't spawn a shell.</para> 11 <para>The first option is to install the actual GNU program 12 <emphasis>which</emphasis>.</para> 20 13 21 <para>The second option is to create a simple script:</para> 14 &which-intro; 15 &which-inst; 16 &which-desc; 17 18 <sect2><title>The 'which' script</title> 19 <para>The second option (for those who don't want to install the program) 20 is to create a simple script:</para> 22 21 <para><screen><userinput>cat > /usr/bin/which << "EOF"</userinput> 23 22 #!/bin/bash … … 28 27 <para>This should generally work OK and is probably the easiest solution 29 28 for boxes which don't need a good user environment to work in.</para> 30 31 <para>The third option is to install the actual program 32 <emphasis>which</emphasis>.</para> 33 34 &which-intro; 35 &which-inst; 36 &which-desc; 29 </sect2> 37 30 38 31 </sect1> -
introduction/welcome/changelog.xml
rc773e7e r85ef7049 10 10 11 11 <itemizedlist> 12 13 <listitem><para>February 25th, 2003 [markh]: General: Removed alias 14 option from which and put the actual package first in the 15 list.</para></listitem> 12 16 13 17 <listitem><para>February 25th, 2003 [larry]: Multimedia: Updated to
Note:
See TracChangeset
for help on using the changeset viewer.