Shared disks

Dennis Kaarsemaker dennis at kaarsemaker.net
Mon Jun 27 21:08:40 UTC 2005


On ma, 2005-06-27 at 14:04 -0700, Vram wrote:
> RWALL=-1;
> if [[ $1 == '-w' ]]; then RWALL=1; fi
> if [[ $1 == '-r' ]]; then RWALL=0; fi
>
> I am confused here..
> 
> Are we passing a command line argument.  like
> 
> # ./windows_fstab -w

You can, it's not neccessary though

> What is $1

That would be the first command line argument (if used)
-- 
Dennis K.
  - Linux for human beings: http://www.ubuntulinux.org
  - Linux voor normale mensen: http://www.ubuntulinux.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050627/b9824c87/attachment.sig>


More information about the ubuntu-users mailing list