[gentoo-user] [OT] max size of bash variable value

November 30th, 2011 - 07:30 am ET by pat | Report spam
Hi all,

Sorry for this off topic post, but I've been asked how/where to find maximum
size of bash variable value. I've search and found 4M, 1k, 4k ... . But didn't
found how/where this limit is set. I know, that for C it's e.g. sizeof(int),
but for bash?

Thanks for help

Pat

-
Freehosting PIPNI - http://www.pipni.cz/
email Follow the discussionReplies 2 repliesReplies Make a reply

Similar topics

Replies

#1 Michael Schreckenbauer
November 30th, 2011 - 08:30 am ET | Report spam
Am Mittwoch, 30. November 2011, 13:19:56 schrieb pat:
Hi all,

Sorry for this off topic post, but I've been asked how/where to find maximum
size of bash variable value. I've search and found 4M, 1k, 4k ... . But
didn't found how/where this limit is set. I know, that for C it's e.g.
sizeof(int), but for bash?



afaik you can query that value with
getconf ARG_MAX
How to set it, I have no idea.

Thanks for help
Pat



Best,
Michael
Replies Reply to this message
#2 pat
November 30th, 2011 - 09:00 am ET | Report spam
On Wed, 30 Nov 2011 14:18:35 +0100, Michael Schreckenbauer wrote
Am Mittwoch, 30. November 2011, 13:19:56 schrieb pat:
> Hi all,
>
> Sorry for this off topic post, but I've been asked how/where to find maximum
> size of bash variable value. I've search and found 4M, 1k, 4k ... . But
> didn't found how/where this limit is set. I know, that for C it's e.g.
> sizeof(int), but for bash?

afaik you can query that value with
getconf ARG_MAX
How to set it, I have no idea.

> Thanks for help
> Pat

Best,
Michael



Thanks a lot that's exactly they looking for ... I hope :-)

Thanks

Pat

-
Freehosting PIPNI - http://www.pipni.cz/
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search