Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* getopts does not work in a shell script
@ 1998-08-27  4:00 Regionalfernsehen Kuessnacht
  1998-08-27  4:00 ` Bob Harris
  1998-08-27  4:00 ` Wolfram Klaus
  0 siblings, 2 replies; 3+ messages in thread
From: Regionalfernsehen Kuessnacht @ 1998-08-27  4:00 UTC (permalink / raw)


Hi

I tried to use the getopts command to process options in a shell script,

without success. The options processing works as follows:
#!/bin/sh
while getopts fdi opt
do
    case $opt in
        'f') echo full ;;
        'd') echo differential ;;
        'i') echo incremental ;;
        '?') echo options: [-fdi]
         exit 2 ;;
        esac
done
I tried the same script also on a sun with unix. It works correctly
there,
but not on the DEC. Please help.
Thank you.

    Tom

__________________________________________________________
To avoid spam I replaced my email addres.
Replace 'nospam' with 'ife.ee' to send me a mail




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-08-27  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-27  4:00 getopts does not work in a shell script Regionalfernsehen Kuessnacht
1998-08-27  4:00 ` Bob Harris
1998-08-27  4:00 ` Wolfram Klaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox