Blob
1 .TH 9 12 .SH NAME3 9, 9.rc, u, u.rc \- run Plan 9 or Unix commands4 .SH SYNOPSIS5 .B 96 .I cmd7 [8 .I args9 \&...10 ]11 .PP12 .B .13 .B 914 (from15 .IR sh (1))16 .PP17 .B 9.rc18 .I cmd19 [20 .I args21 \&...22 ]23 .PP24 .B .25 .B 9.rc26 (from27 .IR rc (1))28 .PP29 .B u30 .I cmd31 [32 .I args33 \&...34 ]35 .PP36 .B .37 .B u38 (from39 .IR sh (1))40 .PP41 .B u.rc42 .I cmd43 [44 .I args45 \&...46 ]47 .PP48 .B .49 .B u.rc50 (from51 .IR rc (1))52 .SH DESCRIPTION53 Because Plan 9 supplies commands with the same name as but different54 behavior than many basic Unix system commands55 (e.g.,56 .BR grep ,57 .BR sed ,58 .BR mkdir ,59 .BR rm ),60 it is not recommended to run with the Plan 9 bin directory61 ahead of the system directories.62 .PP63 .I 964 is a shell script that sets up a Plan 9 environment and runs65 .I cmd .66 It sets67 .B $PLAN968 if necessary69 and adds70 .B $PLAN9/bin71 to the beginning of72 .B $PATH73 before running74 .IR cmd .75 .PP76 If run with no arguments,77 .B 978 does not do anything, so it can be invoked from79 .IR sh -style80 shells using81 .B .82 .B 983 in order to make the current shell start running in the Plan 9 environment.84 .PP85 .I 9.rc86 is the same as87 .I 988 but written for use by the shell89 .IR rc (1).90 .PP91 .I U92 and93 .I u.rc94 are the inverse of95 .I 996 and97 .IR 9.rc :98 they move99 .B $PLAN9/bin100 to the end of the path.101 .SH EXAMPLES102 Search for greek in the password file:103 .IP104 .EX105 $ 9 grep '[α-ζ]' /etc/passwd106 .EE107 .PP108 Start an109 .IR rc (1)110 with the Plan 9 commands in the path before the system commands,111 and then run the Unix112 .IR ls :113 .IP114 .EX115 $ 9 rc116 % u ls117 .EE118 .SH SOURCE119 .B \*9/bin/9120 .br121 .B \*9/bin/9.rc122 .br123 .B \*9/bin/u124 .br125 .B \*9/bin/u.rc126 .SH SEE ALSO127 .IR intro (1)