Re: printing all of command executed in a script
On Sat, Nov 15, 2003 at 06:33:31PM +0800, csj wrote:
> On Sat, 15 Nov 2003 05:05:21 +0900,
> Akira Kitada wrote:
> > On Fri, Nov 14, 2003 at 11:08:11AM +0000, Colin Watson wrote:
> > > On Fri, Nov 14, 2003 at 07:47:37PM +0900, Akira Kitada wrote:
> > > > As the subject above implys, I'd like to print all of commands
> > > > executed in a shell script.
> > >
> > > 'set -x'
> >
> > Thanks!
> > 'set -[xv]' is what i want.
> > I should more read over manuals before posting... sorry.
>
> But where is this command documented?
'man bash'
> I can't seem to get it to work. (I suppose there's some other
> argument you have to pass to set, but what?)
>
> alpha:~> set -x
> set: Variable name must begin with a letter.
Looks like you're using tcsh. 'set -v' and 'set -x' are present in the
Korn shell and its descendants (including the POSIX sh specification and
bash), but not the C shell.
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: