bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue with Getopts


From: Dennis Williamson
Subject: Re: Issue with Getopts
Date: Mon, 15 Nov 2010 01:25:16 -0600

It would be helpful if you posted the error message.

When you say normally, I assume you mean

bash -c script.sh

Most likely the first line of your script is something other than:

#!/bin/bash

On Mon, Nov 15, 2010 at 1:11 AM, Ajay Jain <ajay050@gmail.com> wrote:
> Hi,
>
> I use 'getopts' in my shell script. If I run script normally, it works
> fine. However, the moment I run the script in the current shell (ie .
> <script.sh>), it fails returning error. Basically it is not able to
> parse the arguments. Any reason, why?
>
> Regards,
> Ajay.
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]