[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

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

Similar topics