Blob
1 .TH 9 12 .SH NAME3 9, 9.rc \- run Plan 9 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 .SH DESCRIPTION29 Because Plan 9 supplies commands with the same name as but different30 behavior than many basic Unix system commands31 (e.g.,32 .BR grep ,33 .BR sed ,34 .BR mkdir ,35 .BR rm ),36 it is not recommended to run with the Plan 9 bin directory37 ahead of the system directories.38 .PP39 .I 940 is a shell script that sets up a Plan 9 environment and runs41 .I cmd .42 It sets43 .B $PLAN944 if necessary45 and adds46 .B $PLAN9/bin47 to the beginning of48 .B $PATH49 before running50 .IR cmd .51 .PP52 If run with no arguments,53 .B 954 does not do anything, so it can be invoked from55 .IR sh -style56 shells using57 .B .58 .B 959 in order to make the current shell start running in the Plan 9 environment.60 .PP61 .I 9.rc62 is the same as63 .I 964 but written for use by the shell65 .IR rc (1).66 .SH EXAMPLES67 Search for greek in the password file:68 .IP69 .EX70 $ 9 grep '[α-ζ]' /etc/passwd71 .EE72 .PP73 Start an74 .IR rc (1)75 with the Plan 9 commands in the path before the system commands.76 .IP77 .EX78 9 rc79 .EE80 .SH SOURCE81 .B \*9/bin/982 .br83 .B \*9/bin/9.rc84 .SH SEE ALSO85 .IR intro (1)