Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!wuarchive!uunet!tut.cis.ohio-state.edu!alix!isolated From: isolated@alix.UUCP (20 James D. Corder) Newsgroups: comp.unix.questions Subject: If $1 = "" I get an error, Help:-) Message-ID: <311@alix.UUCP> Date: 1 Oct 90 17:30:34 GMT Distribution: usa Organization: EZ-C-Lite Inc., Columbus, OH Lines: 30 Mon Oct 1 13:20:32 EDT 1990 Hello NetPeople:-) I have a sh program that wants input at the command line. However, I need an error out if the unser does not input at the command line. ie: if [ ${1} = "" ] then echo "Please enter your option now." read $1 else echo "${1} was inputed at the command line" fi However, this file will get the following error message. jim: test: argument expected How can I do this? Thank you, James D. Corder ...osu-cis!alix!jdc ...att!osu-cis!alix!jdc alix!jdc@cis.ohio-state.edu