Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
sash and msh shells
- 05-23-2008
- Michael Schnell
May 23, 2008, 8:14 pm

I'd like to run a not completely initialization script in a µCLinux
system. I can run the "sash" and/or the "msh" shell (sash is the
default, msh can be enabled via busybox).
I need to do some "if" clauses.
Does sash and/or msh provide "if" ? What can be used as decisions ?
(e.g. directory exist, results of commands, ...) What is the syntax ?
I need to use some variables.
I do know that both can do variables, but sash does not have "export".
Are all variables exported by sash, or does it export none ?
I suppose both can do "source" ("." command) to let me set variables
from a file.
Can somebody point me to descriptions of sash and msh ?
Thanks,
-Michael
system. I can run the "sash" and/or the "msh" shell (sash is the
default, msh can be enabled via busybox).
I need to do some "if" clauses.
Does sash and/or msh provide "if" ? What can be used as decisions ?
(e.g. directory exist, results of commands, ...) What is the syntax ?
I need to use some variables.
I do know that both can do variables, but sash does not have "export".
Are all variables exported by sash, or does it export none ?
I suppose both can do "source" ("." command) to let me set variables
from a file.
Can somebody point me to descriptions of sash and msh ?
Thanks,
-Michael

Re: sash and msh shells

Yep,
I did find the sash man page in a Linux installation.
But I did not find anything about conditional execution. Is it true that
sash can't do any "if" ?
Moreover I did not find out if sash exports all it's variables into the
environment of the processes it starts.
I did not find any description of msh, that I heard is recommended if
you want to do things sash can't.
-Michael
Site Timeline
- » How to test linux driver?
- — Next thread in » Embedded Linux
-
- » [Commercial] Become an Expert in Linux Kernel Programming
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » smd perchè magnetici?
- — The site's Newest Thread. Posted in » Electronics Hobby (Italian)
-