LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-13-2012, 04:11 AM   #1
leniviy
Member
 
Registered: Jul 2009
Distribution: Archlinux
Posts: 69

Rep: Reputation: 4
set x args... && shift vs set -- args...


Hi. Has anyone seen shells, whose built-in 'set' command doesn't recognize the double-dash '--' as the end of options?

I'm looking for a portable way to fill the "$@" array with arbitrary arguments.
I tried Solaris sh, ksh, bash, zsh and they all understand double dash.
 
Old 11-13-2012, 05:17 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,570

Rep: Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335
probably you will not find any, but you can write a small code to test it. It looks like a very old and common option.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
set linux hostname & question about set multiple domain on one ip l0pht Linux - Networking 4 06-08-2012 11:14 AM
LXer: Set up Qemu&Spice&Libvirt 0.9.6 USB Redirection on Ubuntu 11.10 LXer Syndicated Linux News 0 10-16-2011 03:40 PM
auto-completion - how does it work & can my script args auto-complete? BrianK Programming 1 06-11-2004 05:51 PM
Ant & args for java acjt Programming 1 04-25-2004 01:01 AM
free()'n args zer0python Programming 2 10-27-2003 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration