Author: Stan Eisenstat
Subject: Re: [Cs323] sh prints file name
Date: Sunday, 18 Oct 2020, 07:07:31
> Message Posted By: Unknown > > When the first command I run after starting the solution script is '$_', > it returns '/c/cs323/Hwk3/mcBash'. Is this intentional? I thought '_' > would be an undeclared variable. bash sets the environmental variable _ to the name of the program being run. tcsh (another shell) sets it to the last command. ksh and zsh (other shells) set it to the last TEXT token in the last command. --Stan-PREV INDEX NEXT