help-bash
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Help-bash] read that understands quoting
From
:
Bill Gradwohl
Subject
:
[Help-bash] read that understands quoting
Date
:
Sat, 10 Mar 2012 14:26:28 -0600
I've been experimenting with read and can't figure out a way to have it act like what happens when quotes are used on a command line.
If I have the following:
someScript 'this is one field' thisisanotherfield 'This is the last field'
I get 3 passed parameters. If I read a line from a file with the identical parameters, I get 10 fields as the quoting is ignored.
Is there a way to get the read to go along with the quoting?
Is there some other mechanism that can do it?
--
Bill Gradwohl
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Help-bash] read that understands quoting
,
Bill Gradwohl
<=
Re: [Help-bash] read that understands quoting
,
Greg Wooledge
,
2012/03/12
Re: [Help-bash] read that understands quoting
,
Chet Ramey
,
2012/03/12
Re: [Help-bash] read that understands quoting
,
Stephane Chazelas
,
2012/03/12
Prev by Date:
Re: [Help-bash] How to tell if an environment variable exists or not
Next by Date:
[Help-bash] if and [ ] equivalence
Previous by thread:
[Help-bash] Is there a convenient function that return what is printed after typing <TAB>?
Next by thread:
Re: [Help-bash] read that understands quoting
Index(es):
Date
Thread